From 1d9d7343c3e6776ff549f25d15ba116f94e41c18 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Tue, 24 Jan 2023 20:03:18 +0100 Subject: [PATCH] Fix activation of deleted chat on contact update --- VERSION | 2 +- protocol/messenger_handler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index b1fa68e5d..33e061fe7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.125.0 +0.125.1 diff --git a/protocol/messenger_handler.go b/protocol/messenger_handler.go index 874fa20c9..e95667fdb 100644 --- a/protocol/messenger_handler.go +++ b/protocol/messenger_handler.go @@ -837,7 +837,7 @@ func (m *Messenger) HandleContactUpdate(state *ReceivedMessageState, message pro chat.LastClockValue = message.Clock } - if contact.ContactRequestState == ContactRequestStateMutual { + if contact.ContactRequestState == ContactRequestStateMutual && chat.DeletedAtClockValue < message.Clock { chat.Active = true }