fix: don't save sender as contact for certain message types (#4052)
This commit is contained in:
parent
4cab5b6106
commit
a89dc020e1
|
@ -3615,8 +3615,10 @@ func (m *Messenger) handleRetrievedMessages(chatWithMessages map[transport.Filte
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
contact = c
|
contact = c
|
||||||
messageState.AllContacts.Store(senderID, contact)
|
if msg.Type != protobuf.ApplicationMetadataMessage_PUSH_NOTIFICATION_QUERY {
|
||||||
m.forgetContactInfoRequest(senderID)
|
messageState.AllContacts.Store(senderID, contact)
|
||||||
|
m.forgetContactInfoRequest(senderID)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
messageState.CurrentMessageState = &CurrentMessageState{
|
messageState.CurrentMessageState = &CurrentMessageState{
|
||||||
MessageID: messageID,
|
MessageID: messageID,
|
||||||
|
|
Loading…
Reference in New Issue