SDKsFlutter
Create an @ message
Create a group @ text message with the OpenIM Flutter SDK.
final message = await OpenIM.iMManager.messageManager.createTextAtMessage(
text: '@$userID Please confirm',
atUserIDList: [userID],
atUserInfoList: [AtUserInfo(atUserID: userID, groupNickname: nickname)],
quoteMessage: quotedMessage,
);Use stable user IDs for mentions, and derive the display data and ID list from the same member snapshot. The Future creates the object only; this message must be sent to a group.
Was this page helpful?