#1107 - Fixed message history not showing up after first sync

This commit is contained in:
Moez Bhatti
2018-04-30 14:32:50 -04:00
parent 0e52b290a0
commit 59e8433e2e
@@ -95,7 +95,7 @@ class SyncRepositoryImpl @Inject constructor(
realm.delete(SyncLog::class.java)
}
val lastSync = realm.where(Message::class.java)?.max("date")?.toLong() ?: 0
val lastSync = realm.where(SyncLog::class.java)?.max("date")?.toLong() ?: 0
realm.insert(SyncLog())