Mark history as fully synced on clearing chat history

This commit is contained in:
Roman Volosovskyi 2022-02-08 13:12:11 +02:00
parent 13dd602b3c
commit fb1f95a38f
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
0.93.3
0.93.4

View File

@ -1820,7 +1820,7 @@ func (db sqlitePersistence) clearHistory(chat *Chat, currentClockValue uint64, t
// Reset synced-to/from
syncedTo := uint32(currentClockValue / 1000)
chat.SyncedTo = syncedTo
chat.SyncedFrom = syncedTo
chat.SyncedFrom = 0
chat.LastMessage = nil
chat.UnviewedMessagesCount = 0