mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
updates roster entries with remote notifications
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2106 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
d48175560d
commit
48611ac2f5
2 changed files with 16 additions and 0 deletions
|
@ -547,6 +547,11 @@ public class Roster {
|
|||
// Make sure the entry is in the entry list.
|
||||
if (!entries.contains(entry)) {
|
||||
entries.add(entry);
|
||||
} else {
|
||||
// If the entry was in then list then update its state with the new values
|
||||
RosterEntry existingEntry =
|
||||
(RosterEntry) entries.get(entries.indexOf(entry));
|
||||
existingEntry.updateState(entry.getName(), entry.getType());
|
||||
}
|
||||
// If the roster entry belongs to any groups, remove it from the
|
||||
// list of unfiled entries.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue