FetchOlderNomadMessagesByConversationUseCaseImpl
internal class FetchOlderNomadMessagesByConversationUseCaseImpl(dispatcher: <Error class: unknown class> = KaliumDispatcherImpl, messageRepository: MessageRepository) : FetchOlderNomadMessagesByConversationUseCase
Constructors
Link copied to clipboard
constructor(dispatcher: <Error class: unknown class> = KaliumDispatcherImpl, messageRepository: MessageRepository)
Functions
Link copied to clipboard
open suspend operator override fun invoke(conversationId: <Error class: unknown class>, pageSize: Int)
Fetches older messages for a given conversation in a remote data source and stores them in the local database. This is typically used when the user scrolls up in the message list we want to load more messages from the past.