Search in sources :

Example 1 with MessageArchiveService

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)));
}
Also used : MessageArchiveService(de.pixart.messenger.services.MessageArchiveService)

Aggregations

MessageArchiveService (de.pixart.messenger.services.MessageArchiveService)1