mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
check for deleted files when loading more messages from history
This commit is contained in:
parent
7af588c8b3
commit
100ba6e7e7
@ -940,6 +940,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
|||||||
List<Message> messages = databaseBackend.getMessages(conversation, 50,timestamp);
|
List<Message> messages = databaseBackend.getMessages(conversation, 50,timestamp);
|
||||||
if (messages.size() > 0) {
|
if (messages.size() > 0) {
|
||||||
conversation.addAll(0, messages);
|
conversation.addAll(0, messages);
|
||||||
|
checkDeletedFiles(conversation);
|
||||||
callback.onMoreMessagesLoaded(messages.size(), conversation);
|
callback.onMoreMessagesLoaded(messages.size(), conversation);
|
||||||
} else if (conversation.hasMessagesLeftOnServer()
|
} else if (conversation.hasMessagesLeftOnServer()
|
||||||
&& account.isOnlineAndConnected()
|
&& account.isOnlineAndConnected()
|
||||||
@ -1028,6 +1029,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
checkDeletedFiles(conversation);
|
||||||
this.conversations.add(conversation);
|
this.conversations.add(conversation);
|
||||||
updateConversationUi();
|
updateConversationUi();
|
||||||
return conversation;
|
return conversation;
|
||||||
|
Loading…
Reference in New Issue
Block a user