Listen for recipient changes in conversations and group updates.

Closes #4079
// FREEBIE
This commit is contained in:
Moxie Marlinspike
2015-09-16 17:31:24 -07:00
parent a7e05c4cd6
commit 0794380ca8
13 changed files with 222 additions and 95 deletions

View File

@@ -179,7 +179,7 @@ public class Recipient {
}
for (RecipientModifiedListener listener : localListeners)
listener.onModified(Recipient.this);
listener.onModified(this);
}
public interface RecipientModifiedListener {

View File

@@ -185,9 +185,7 @@ public class Recipients implements Iterable<Recipient>, RecipientModifiedListene
}
}
synchronized (this) {
listeners.add(listener);
}
listeners.add(listener);
}
public synchronized void removeListener(RecipientsModifiedListener listener) {