setConversationsToTop

public abstract void setConversationsToTop(List<ConversationIdentifier> conversationIdentifiers, boolean isTop, boolean needCreate, IRongCoreCallback.ResultCallback<Boolean> callback)

Asynchronously batch sets the top status of conversations

Since

5.6.7

Parameters

conversationIdentifiers

List of conversation identifiers, maximum of 20

isTop

Whether to pin the conversation

needCreate

Whether to create a conversation if it does not exist

callback

Callback result. This callback is executed on the main thread. Avoid performing time-consuming operations in the callback to prevent SDK thread blocking.