fixed cache cleaning cleaning all confercenes instead of where contact is. closes #3229
This commit is contained in:
parent
63f4625266
commit
dd1d1858d0
|
@ -1671,8 +1671,7 @@ public class XmppConnectionService extends Service {
|
||||||
public List<Conversation> findAllConferencesWith(Contact contact) {
|
public List<Conversation> findAllConferencesWith(Contact contact) {
|
||||||
ArrayList<Conversation> results = new ArrayList<>();
|
ArrayList<Conversation> results = new ArrayList<>();
|
||||||
for (final Conversation c : conversations) {
|
for (final Conversation c : conversations) {
|
||||||
if (c.getMode() == Conversation.MODE_MULTI
|
if (c.getMode() == Conversation.MODE_MULTI && c.getMucOptions().isContactInRoom(contact)) {
|
||||||
&& (c.getJid().asBareJid().equals(c.getJid().asBareJid()) || c.getMucOptions().isContactInRoom(contact))) {
|
|
||||||
results.add(c);
|
results.add(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue