Hi,

2016-10-07 19:45 GMT+02:00 Chris Ballinger <ch...@chatsecure.org>:
> OH, so there's nothing in the spec against having multiple identical `rid`.
> I was passing them back and forth to my application as <rid,key>
> dictionaries assuming that rid should always be unique across all users and
> devices, which was the cause of my confusion about how to handle collisions
> when encrypting. Will have to fix that to use an array.

Yes. RIDs are not globally unique but only unique per account.

>
> So just to verify, is this logic correct? When sending a message, I'm
> iterating over all the devicesIds to send, if I see duplicate `rid` I just
> add them all to the list and keep going. When receiving `rid`, if there's
> dupes, I just jam them in all of the matching sessions until it works (or
> doesn't).

Yes when sending to groups (multiple recipients) you can have multiple
rids which are the same.
When sending to just on recipient that doesn't happen.

And yes you are correct with the decryption logic.

cheers
Daniel
_______________________________________________
Standards mailing list
Info: https://mail.jabber.org/mailman/listinfo/standards
Unsubscribe: standards-unsubscr...@xmpp.org
_______________________________________________

Reply via email to