[jdev] Displaying presence from contacts with multiple resources

Georg Lukas georg at op-co.de
Thu Apr 19 14:43:04 UTC 2018

* Matthew Wild <mwild1 at gmail.com> [2018-04-19 16:12]:
> If you've implemented a client, I'm curious to learn how you chose to
> determine what presence to show for a contact if they have multiple
> resources with different 'show' states (e.g. one is just available,
> and one is dnd).

That's a great question. It would make sense to have "dnd" override any
other setting, as yout typically don't want to disturb a person on any
of the channels if this setting is configured.

Some implementations order by resource priority, which is not very
helpful to users, IMO.

I'd suggest to use the following sort order:

- dnd
- chat
- available
- away
- xa

With ties resolved by using the client priority (or maybe the length of
the status message - the longer one wins. This actually does make sense
if you only have configured a status message on one client).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20180419/dd6c0497/attachment.sig>

More information about the JDev mailing list