fixed cache cleaning cleaning all confercenes instead of where contact is. closes #3229

This commit is contained in:
Daniel Gultsch 2018-10-12 16:13:37 +02:00
parent 63f4625266
commit dd1d1858d0
1 changed files with 2 additions and 3 deletions

View File

@ -1671,9 +1671,8 @@ public class XmppConnectionService extends Service {
public List<Conversation> findAllConferencesWith(Contact contact) {
ArrayList<Conversation> 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;