1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-26 20:47:58 +01:00

Fixed notification of presence unavailable packets.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2062 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-08-24 03:59:42 +00:00 committed by mtucker
parent 170c14e6f3
commit 4bec02e810

View file

@ -421,8 +421,13 @@ public class Roster {
else if (presence.getType() == Presence.Type.UNAVAILABLE) {
presenceMap.remove(key);
// If the user is in the roster, fire an event.
if (entries.contains(key)) {
fireRosterPresenceEvent(key);
synchronized (entries) {
for (Iterator i=entries.iterator(); i.hasNext(); ) {
RosterEntry entry = (RosterEntry)i.next();
if (entry.getUser().equals(key)) {
fireRosterPresenceEvent(key);
}
}
}
}
else if (presence.getType() == Presence.Type.SUBSCRIBE) {