Resource handling is broken
Resource handling is currently broken. When there's one of the two connected with more than one resource, messages often go to the wrong resource - even if that has a lower priority! It happend that an ESession to the highest resource suddenly changed it's destination to the lowest resource which can't even handle ESessions due to a status change! Also, Gajim does not always reply to the resource that send the messages. When both use more than one resources, there's only very little chance left that every message goes where it should. It really makes using more than one resource unusable. I'm quite annoyed that all Gajim users send to the wrong resource 50% of the time when I have two resources and even 66% of the time when I have 3. And all they did is click the entry in the roster. One would expect that this goes to the highest resource then. But it clearly doesn't. What also happens is that if you have an ESessions and a new resources comes online with a higher prio, the ESession is still with the bare JID, but is internally sent to the full JID of the old highest prio resource. So, what does not work:
- Sending to the highest resource by doubleclicking someone in the roster
- Replying to the resource that sent a message
- Resource handling as a whole when an ESession is running - nothing works as expected then anymore
- All this doesn't happen always, but the more resources, the more often it happens.
→ I suspect it's the stupid idea to return a random resource instead of the highest resource when we have a bare JID and want a resource for it. I once fixed that, but it was reverted by Asterix for "performance reasons" (I can't see them, but ok).