Search in sources :

Example 1 with MessageArchiveService

use of eu.siacs.conversations.services.MessageArchiveService in project Conversations by siacs.

the class ConversationFragment method showLoadMoreMessages.

private boolean showLoadMoreMessages(final Conversation c) {
    final boolean mam = hasMamSupport(c);
    final MessageArchiveService service = activity.xmppConnectionService.getMessageArchiveService();
    return mam && (c.getLastClearHistory() != 0 || (c.countMessages() == 0 && c.messagesLoaded.get() && c.hasMessagesLeftOnServer() && !service.queryInProgress(c)));
}
Also used : MessageArchiveService(eu.siacs.conversations.services.MessageArchiveService)

Aggregations

MessageArchiveService (eu.siacs.conversations.services.MessageArchiveService)1