[jdev] Displaying presence from contacts with multiple resources
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:
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...
Size: 833 bytes
Desc: not available
More information about the JDev