1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-23 04:22:05 +01:00

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

View file

@ -669,6 +669,11 @@ public class Roster {
unfiledEntries.remove(entry); 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 { else {
// Make sure the entry is in the entry list. // Make sure the entry is in the entry list.