SDKsFlutter
Set the conversation message receive option
Set message reception and notification behavior for one conversation with the OpenIM Flutter SDK.
await OpenIM.iMManager.conversationManager.setConversation(
conversationID,
ConversationReq(recvMsgOpt: ReceiveMessageOpt.notNotify),
);| Constant | Value | Meaning |
|---|---|---|
ReceiveMessageOpt.receive | 0 | Receive messages normally and allow notifications. |
ReceiveMessageOpt.notReceive | 1 | Do not receive messages from this conversation or notify the user. |
ReceiveMessageOpt.notNotify | 2 | Receive messages from this conversation without notifying the user. |
For the account-level default, see Set the global message receive option. After the Future succeeds, merge the conversation by conversationID through onConversationChanged. For the complete listener, see Retrieve the conversation list.
Was this page helpful?