Remove cached presence info when deleting a user from the roster (SMACK-131).

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2298 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2004-04-21 21:10:42 +00:00 committed by mtucker
parent a958b245e6
commit 693d0013ac
1 changed files with 5 additions and 0 deletions

View File

@ -669,6 +669,11 @@ public class Roster {
unfiledEntries.remove(entry);
}
}
// Removing the user from the roster, so remove any presence information
// about them.
String key = StringUtils.parseName(item.getUser()) + "@" +
StringUtils.parseServer(item.getUser());
presenceMap.remove(key);
}
else {
// Make sure the entry is in the entry list.