fix(chats): mark 1-1 chat as active when contact is mutually approved (#2822)
This commit is contained in:
parent
614f0b988c
commit
b5cc14f302
|
@ -830,6 +830,10 @@ func (m *Messenger) HandleContactUpdate(state *ReceivedMessageState, message pro
|
||||||
chat.LastClockValue = message.Clock
|
chat.LastClockValue = message.Clock
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if contact.ContactRequestState == ContactRequestStateMutual {
|
||||||
|
chat.Active = true
|
||||||
|
}
|
||||||
|
|
||||||
state.Response.AddChat(chat)
|
state.Response.AddChat(chat)
|
||||||
// TODO(samyoul) remove storing of an updated reference pointer?
|
// TODO(samyoul) remove storing of an updated reference pointer?
|
||||||
state.AllChats.Store(chat.ID, chat)
|
state.AllChats.Store(chat.ID, chat)
|
||||||
|
|
Loading…
Reference in New Issue