From dd1d1858d04699ad30f45b9c217aec0c0987979d Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 12 Oct 2018 16:13:37 +0200 Subject: [PATCH] fixed cache cleaning cleaning all confercenes instead of where contact is. closes #3229 --- .../siacs/conversations/services/XmppConnectionService.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index 86319acec..f5a91e5d9 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -1671,9 +1671,8 @@ public class XmppConnectionService extends Service { public List findAllConferencesWith(Contact contact) { ArrayList results = new ArrayList<>(); for (final Conversation c : conversations) { - if (c.getMode() == Conversation.MODE_MULTI - && (c.getJid().asBareJid().equals(c.getJid().asBareJid()) || c.getMucOptions().isContactInRoom(contact))) { - results.add(c); + if (c.getMode() == Conversation.MODE_MULTI && c.getMucOptions().isContactInRoom(contact)) { + results.add(c); } } return results;