mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +02:00
only fire roster listener if entry changed (SMACK-312)
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11827 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
a5693609b2
commit
e3962d15ae
2 changed files with 51 additions and 4 deletions
|
@ -852,10 +852,12 @@ public class Roster {
|
|||
}
|
||||
else {
|
||||
// If the entry was in then list then update its state with the new values
|
||||
entries.put(item.getUser(), entry);
|
||||
|
||||
// Keep note that an entry has been updated
|
||||
updatedEntries.add(item.getUser());
|
||||
RosterEntry oldEntry = entries.put(item.getUser(), entry);
|
||||
|
||||
// Keep note that an entry has been updated but only if it's different
|
||||
if (oldEntry == null || !oldEntry.equalsDeep(entry)) {
|
||||
updatedEntries.add(item.getUser());
|
||||
}
|
||||
}
|
||||
// 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