SDKsFlutter
Set the conversation extension field
Set the application-defined extension string of a specified conversation with the OpenIM Flutter SDK.
ex is a complete string value; the SDK does not merge JSON automatically. Read the previous value first and preserve namespaces owned by other application modules.
await OpenIM.iMManager.conversationManager.setConversation(
conversationID,
ConversationReq(ex: mergedExtensionJSON),
);ConversationReq does not provide isMarked or remark, so this method can update only declared fields such as ex.
After the Future succeeds, merge the latest conversation by conversationID through onConversationChanged. For the complete listener, see Retrieve the conversation list.
Was this page helpful?