Browse SDKs · Flutter
SDKsFlutter

Set a message's local extension

Update a message's local extension field on the current Flutter device.

Copy
await OpenIM.iMManager.messageManager.setMessageLocalEx(
  conversationID: conversationID,
  clientMsgID: clientMsgID,
  localEx: jsonEncode({'expanded': true}),
);

localEx is a complete string value. It changes only the current device, does not synchronize to other clients, and does not trigger the new-message listener. Confirm that clientMsgID is non-empty before writing.