SDKsAndroid
Pin or unpin a conversation
Use pinConversation() to set the pinned state of an Android conversation.
OpenIMClient.getInstance().conversationManager.pinConversation(
new OnBase<String>() {
@Override
public void onSuccess(String data) {
markPinRequestSubmitted(conversationID, true);
}
@Override
public void onError(int code, String error) {
recordConversationPinFailure(code, error);
}
},
conversationID,
true
);Pass true to pin and false to unpin. The setting affects only the current account's conversation list. A successful callback does not mean onConversationChanged has arrived; merge the later conversation increment by conversationID.
Was this page helpful?