fix(chats): mark 1-1 chat as active when contact is mutually approved (#2822)

This commit is contained in:
Michał 2022-08-26 18:50:41 +02:00 committed by GitHub
parent 614f0b988c
commit b5cc14f302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
0.106.2
0.106.3

View File

@ -830,6 +830,10 @@ func (m *Messenger) HandleContactUpdate(state *ReceivedMessageState, message pro
chat.LastClockValue = message.Clock
}
if contact.ContactRequestState == ContactRequestStateMutual {
chat.Active = true
}
state.Response.AddChat(chat)
// TODO(samyoul) remove storing of an updated reference pointer?
state.AllChats.Store(chat.ID, chat)