- Is it possible to get all resources for a given user from the Roster?
For Smack 2.2.0 the javadoc says
for org.jivesoftware.smack.Roster.getPresence(String user)
''public Presence getPresence(String user)
Returns the presence info for a particular user, or null if the user is unavailable (offline) or if no presence information is available, such as when you are not subscribed to the user’'s presence updates.
If the user has several presences (one for each resource) then answer the presence with the highest priority.
But is there any way to get all presences and all resources for a given user from the Roster
email@example.com/home might be available
firstname.lastname@example.org/work might be away
- If answer to 1 is no, I am assuming I could listen on org.jivesoftware.smack.XMPPConnection and get all this information with a presence message. Would this work?