Fixed NPE while loading messages via MAM
This commit is contained in:
parent
97749cd8f7
commit
2168c73786
1 changed files with 1 additions and 1 deletions
|
@ -161,6 +161,7 @@ public class MessageArchiveService implements OnAdvancedStreamFeaturesLoaded {
|
|||
final Conversation conversation = query.getConversation();
|
||||
if (conversation != null) {
|
||||
conversation.sort();
|
||||
conversation.setHasMessagesLeftOnServer(query.getMessageCount() > 0);
|
||||
} else {
|
||||
for(Conversation tmp : this.mXmppConnectionService.getConversations()) {
|
||||
if (tmp.getAccount() == query.getAccount()) {
|
||||
|
@ -171,7 +172,6 @@ public class MessageArchiveService implements OnAdvancedStreamFeaturesLoaded {
|
|||
if (query.hasCallback()) {
|
||||
query.callback();
|
||||
} else {
|
||||
conversation.setHasMessagesLeftOnServer(query.getMessageCount() > 0);
|
||||
this.mXmppConnectionService.updateConversationUi();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue