getConversationList

public abstract void getConversationList(IRongCoreCallback.ResultCallback<List<Conversation>> callback, String channelId)

Retrieves the local conversation list of the current user. The returned list includes the following types of conversations: one-to-one chat, group, discussion group, and system conversation.

This method reads the conversation list from the local database. The returned conversation list is sorted in chronological order, with pinned conversations appearing first.

If you need to retrieve other types of conversation lists, use getConversationList.

This method should be called after the database connection is opened, as indicated by the OnDatabaseOpened callback, IRongCoreCallback.ConnectCallback.

Since

5.1.1

Parameters

callback

The callback for retrieving the conversation list.

channelId

The business identifier of the conversation to which the message belongs.


public abstract void getConversationList(String channelId, IRongCoreCallback.ResultCallback<List<Conversation>> callback, Array<ConversationType> conversationTypes)

Retrieves the local conversation list of the current user based on the conversation type.

Since

5.1.1

Parameters

callback

The callback for retrieving the conversation list.

conversationTypes

The types of conversations to retrieve.

channelId

The business identifier of the conversation to which the message belongs.