SDKsFlutter
Insert a local one-to-one message
Use the Flutter SDK to insert a local message into a one-to-one conversation.
final stored = await OpenIM.iMManager.messageManager
.insertSingleMessageToLocalStorage(
receiverID: receiverUserID,
senderID: senderUserID,
message: localMessage,
);All three parameters are nullable in the declaration, but an application call must supply complete values. The Future returns the stored Message; merge it only after confirming that clientMsgID is non-empty. This method changes only the current device. It does not send a message or trigger a remote listener.
Was this page helpful?