mirror of
https://github.com/status-im/status-go.git
synced 2025-01-20 11:40:29 +00:00
fix: don't save sender as contact for certain message types (#4052)
This commit is contained in:
parent
4cab5b6106
commit
a89dc020e1
@ -3615,9 +3615,11 @@ func (m *Messenger) handleRetrievedMessages(chatWithMessages map[transport.Filte
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
contact = c
|
contact = c
|
||||||
|
if msg.Type != protobuf.ApplicationMetadataMessage_PUSH_NOTIFICATION_QUERY {
|
||||||
messageState.AllContacts.Store(senderID, contact)
|
messageState.AllContacts.Store(senderID, contact)
|
||||||
m.forgetContactInfoRequest(senderID)
|
m.forgetContactInfoRequest(senderID)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
messageState.CurrentMessageState = &CurrentMessageState{
|
messageState.CurrentMessageState = &CurrentMessageState{
|
||||||
MessageID: messageID,
|
MessageID: messageID,
|
||||||
WhisperTimestamp: uint64(msg.TransportMessage.Timestamp) * 1000,
|
WhisperTimestamp: uint64(msg.TransportMessage.Timestamp) * 1000,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user