mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 11:42:15 -05:00
do not run mam queries in findOrCreateConversation() when isn't available
This commit is contained in:
parent
e6cd92a663
commit
3522243835
@ -1052,6 +1052,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
|||||||
}
|
}
|
||||||
this.databaseBackend.createConversation(conversation);
|
this.databaseBackend.createConversation(conversation);
|
||||||
}
|
}
|
||||||
|
if (account.getXmppConnection() != null && account.getXmppConnection().getFeatures().mam()) {
|
||||||
if (query == null) {
|
if (query == null) {
|
||||||
this.mMessageArchiveService.query(conversation);
|
this.mMessageArchiveService.query(conversation);
|
||||||
} else {
|
} else {
|
||||||
@ -1059,6 +1060,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
|||||||
this.mMessageArchiveService.query(conversation, query.getStart());
|
this.mMessageArchiveService.query(conversation, query.getStart());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.conversations.add(conversation);
|
this.conversations.add(conversation);
|
||||||
updateConversationUi();
|
updateConversationUi();
|
||||||
return conversation;
|
return conversation;
|
||||||
|
Loading…
Reference in New Issue
Block a user