powered by Jive Software


Why does MultiUserChat.getOccupants() return JID strings instead of Occupant objects? There’'s a race condition when calling getOccupant() for each JID, because the occupants may have left or changed nicknames since the call to getOccupants() (or even in between two calls to getOccupant while iterating through the JIDs). I would prefer to be able to get a list of Occupant objects atomically, i.e., guaranteed to be consistent and complete at some time in the recent past.