conversationsPaged

abstract fun conversationsPaged(pageSize: Int): Flow<Result<PagingData<Conversation>>>

Retrieves conversations available to the local participant.

Return

A Flow of PagingData for observing the Conversation search results. Result.Success.data returns the PagingData.

Parameters

pageSize

The maximum number of conversations in a page.


abstract fun conversationsPaged(pageSize: Int, sortedByActivityDescending: Boolean = true): Flow<Result<PagingData<Conversation>>>

Retrieves n number of conversations from offline cached data sorted by latest activity. This only returns an order based on offline cached data, and may not reflect the real-time state of conversations if the client has not retrieved that activity.

Return

A Flow of PagingData for observing the Conversation search results. Result.Success.data returns the PagingData.

Parameters

pageSize

The maximum number of conversations in a page.

sortedByActivityDescending

The direction based on last activity. Default value is true.