diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-06-14 17:11:31 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-06-14 21:29:20 +0200 |
commit | 7099c55a67caf7466dd43bf5c1c1553916770cbc (patch) | |
tree | beab73b78673afdef325ab82ef9a9319bdd874a3 /src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | |
parent | b951a2894a9ab4cbed9aa93359502481f9275d9e (diff) |
clear muc tiles when avatar of member changes
Diffstat (limited to 'src/main/java/eu/siacs/conversations/services/XmppConnectionService.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index 3072a9aad..6f173ba25 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -1347,6 +1347,17 @@ public class XmppConnectionService extends Service { return this.accounts; } + public List<Conversation> findAllConferencesWith(Contact contact) { + ArrayList<Conversation> results = new ArrayList<>(); + for(Conversation conversation : conversations) { + if (conversation.getMode() == Conversation.MODE_MULTI + && conversation.getMucOptions().isContactInRoom(contact)) { + results.add(conversation); + } + } + return results; + } + public Conversation find(final Iterable<Conversation> haystack, final Contact contact) { for (final Conversation conversation : haystack) { if (conversation.getContact() == contact) { |