aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/services
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-11-30 21:27:54 +0100
committerChristian Schneppe <christian@pix-art.de>2018-11-30 21:27:54 +0100
commit6c2e3b91a4a7d9fcd75e228dccd989331e75af6c (patch)
treec709a27a5e6ce119cba54611b9a2719a5644be71 /src/main/java/de/pixart/messenger/services
parent806c82f34bf561c8b35d245b2756acd2361c9210 (diff)
fixed cache cleaning of muc avatars
Diffstat (limited to 'src/main/java/de/pixart/messenger/services')
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
index c435c1f35..b4fba14b2 100644
--- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
+++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
@@ -1889,10 +1889,13 @@ public class XmppConnectionService extends Service {
return this.accounts;
}
+ /**
+ * This will find all conferences with the contact as member and also the conference that is the contact (that 'fake' contact is used to store the avatar)
+ */
public List<Conversation> findAllConferencesWith(Contact contact) {
ArrayList<Conversation> results = new ArrayList<>();
for (final Conversation c : conversations) {
- if (c.getMode() == Conversation.MODE_MULTI && c.getMucOptions().isContactInRoom(contact)) {
+ if (c.getMode() == Conversation.MODE_MULTI && (c.getJid().asBareJid().equals(contact.getJid().asBareJid()) || c.getMucOptions().isContactInRoom(contact))) {
results.add(c);
}
}