fetchOlderMessagesIfNeeded

open suspend override fun fetchOlderMessagesIfNeeded(conversationId: <Error class: unknown class>, pageSize: Int, beforeTimestampMs: Long?, onInvalidate: () -> Unit)

Fetches older messages for the given conversation if needed, based on the current paging state.

Parameters

conversationId

The ID of the conversation to fetch messages for.

pageSize

The number of messages to fetch in one batch.

beforeTimestampMs

Optional timestamp to fetch messages before.

onInvalidate

Callback to be invoked if the paging state is updated and the UI pager consumer needs to be invalidated.