Open adambabik opened 5 years ago
it is probably not a big deal in performance, we can add contact automatically, but why app can't explicitly call AddContact rpc method?
@dshulyak it can but then we would need to return an error if joining a chat that has no associated contact. What I want to avoid is when one joins a chat but Messenger.Messages()
returns nothing.
Problem
Currently, when joining a new chat, the contact is not added to the list of contacts but a Whisper subscription is created. This makes it difficult to get messages because
Messenger.Messages
require a contact to load them.Solution
Add a contact automatically when joining a chat.