Mark history as fully synced on clearing chat history
This commit is contained in:
parent
13dd602b3c
commit
fb1f95a38f
|
@ -1820,7 +1820,7 @@ func (db sqlitePersistence) clearHistory(chat *Chat, currentClockValue uint64, t
|
||||||
// Reset synced-to/from
|
// Reset synced-to/from
|
||||||
syncedTo := uint32(currentClockValue / 1000)
|
syncedTo := uint32(currentClockValue / 1000)
|
||||||
chat.SyncedTo = syncedTo
|
chat.SyncedTo = syncedTo
|
||||||
chat.SyncedFrom = syncedTo
|
chat.SyncedFrom = 0
|
||||||
|
|
||||||
chat.LastMessage = nil
|
chat.LastMessage = nil
|
||||||
chat.UnviewedMessagesCount = 0
|
chat.UnviewedMessagesCount = 0
|
||||||
|
|
Loading…
Reference in New Issue