SDKsAndroid
Set conversation message reception
Use setConversationRecvMessageOpt() to set message reception and notification behavior for one conversation.
OpenIMClient.getInstance().conversationManager.setConversationRecvMessageOpt(
new OnBase<String>() {
@Override
public void onSuccess(String data) {
// The request completed.
}
@Override
public void onError(int code, String error) {
// code and error describe the failure.
}
},
conversationID,
2
);| Value | Meaning |
|---|---|
0 | Receive messages and allow notifications. |
1 | Do not receive messages from this conversation or notify. |
2 | Receive messages from this conversation without notification. |
The account default is documented in Set global message reception. Conversation list changes for this setting can be received through onConversationChanged; see Get the conversation list for listener setup.
Was this page helpful?