Browse SDKs · Flutter
SDKsFlutter

Set the conversation extension field

Set the application-defined extension string of a specified conversation with the OpenIM Flutter SDK.

Copy

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 in the pinned baseline has no isMarked or remark field. Do not pass the WASM conversation-mark or remark parameters to the Flutter API.

After the Future succeeds, merge the latest conversation by conversationID through onConversationChanged. For the complete listener, see Retrieve the conversation list.