From fb1f95a38f6b2a8a51da3f0c4b2bbacade084e70 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Tue, 8 Feb 2022 13:12:11 +0200 Subject: [PATCH] Mark history as fully synced on clearing chat history --- VERSION | 2 +- protocol/message_persistence.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 5e4a9c1a2..e17afd056 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.93.3 +0.93.4 diff --git a/protocol/message_persistence.go b/protocol/message_persistence.go index a9a033f1f..dda4c1f2e 100644 --- a/protocol/message_persistence.go +++ b/protocol/message_persistence.go @@ -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