NomadMessagePagingCoordinatorImpl
internal class NomadMessagePagingCoordinatorImpl(selfUserId: UserId, isNomadEnabled: () -> Boolean, nomadDeviceSyncApi: NomadDeviceSyncApi, nomadMessagesDAO: NomadMessagesDAO, mapper: NomadAllMessagesMapper = NomadAllMessagesMapper(), clock: Clock = Clock.System) : NomadMessagePagingCoordinator
Constructors
Link copied to clipboard
constructor(selfUserId: UserId, isNomadEnabled: () -> Boolean, nomadDeviceSyncApi: NomadDeviceSyncApi, nomadMessagesDAO: NomadMessagesDAO, mapper: NomadAllMessagesMapper = NomadAllMessagesMapper(), clock: Clock = Clock.System)
Functions
Link copied to clipboard
open suspend override fun fetchOlderMessagesIfNeeded(conversationId: ConversationId, pageSize: Int, beforeTimestampMs: Long?, onInvalidate: () -> Unit): NomadMessagePagingResult
Fetches older messages for the given conversation if needed, based on the current paging state.