conversations
Retrieves conversations available to the local participant.
Return
A Flow for observing a List of Conversation search results. Result.Success.data returns the List.
Parameters
The maximum number of results to expect.
The comparison conversation which serves as a base for returning older conversations. If null, the query starts from the newest known conversation.
The conversation ID if querying for a particular Conversation.
Forces the requested data to be refreshed over the network when set to true. Otherwise, the requested data is fetched from the local cache and only refreshed over the network if no results are found locally. Default value is false.
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 for observing a List of Conversation search results. Result.Success.data returns the List.
Parameters
The maximum number of conversations to return in the query.
The direction based on last activity. Default value is true.
The comparison conversation which serves as a base for returning older conversations. If null, the query starts from the newest known conversation.
Deprecated
Use conversationsFlow instead.
Replace with
conversationsFlow(limit, olderThanConversation, null)
Retrieves conversations available to the local participant.
Return
A Flow for observing a List of Conversation search results. Result.Success.data returns the List.
Parameters
The maximum number of results to expect.
The comparison conversation which serves as a base for returning older conversations. If null, the query starts from the newest known conversation.
Deprecated
Use conversationsFlow instead.
Replace with
conversationsFlow(limit, sortedByActivityDescending, null)
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 for observing a List of Conversation search results. Result.Success.data returns the List.
Parameters
The maximum number of conversations to return in the query.
The direction based on last activity. Default value is true.
Deprecated
Use conversationsFlow instead.
Replace with
conversationsFlow(limit, sortedByActivityDescending, null)
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 for observing a List of Conversation search results. Result.Success.data returns the List.
Parameters
The maximum number of conversations to return in the query.