Open dos1 opened 6 years ago
Just tested. Seems to work properly. Sent a message with bob to a contact. The opened chat requested bob back from the resource. Even so I think it's possible to have requests from a wrong resource of without reseource at all depending on chat dialog settings. Because we determine the other party as a dialog's jid but not as jid of incoming message.
Since theoretically a message might be rendered much later then it was received, without keeping jid/resource of original message we definitely can't request bob properly.
Moreover the original resource may go offline and come back with different random-generate resource.
I see two possible solutions here.
@dos1: The current situation is same?
Linked to XEP-0231: Bits of Binary:
A request for BoB data should be sent to a resource that sent the message referencing it - however, Psi sends it to the bare JID, which, at least with ejabberd, won't work.
Test case: stickers sent from Movim.