use of de.pixart.messenger.services.MessageArchiveService in project Pix-Art-Messenger by kriztan.
the class ConversationFragment method showLoadMoreMessages.
private boolean showLoadMoreMessages(final Conversation c) {
final boolean mam = hasMamSupport(c) && !c.getContact().isBlocked();
final MessageArchiveService service = activity.xmppConnectionService.getMessageArchiveService();
return mam && (c.getLastClearHistory().getTimestamp() != 0 || (c.countMessages() == 0 && c.messagesLoaded.get() && c.hasMessagesLeftOnServer() && !service.queryInProgress(c)));
}
Aggregations