editMessage abstract method

Edit message.

Available since: 2.20.0 and above. Description: This method can be used to edit messages in single chat, group chat. Use cases: When you need to edit message to the target user, target group chat after logging in, edit it through this interface. Related callbacks: ZIMMessageSendNotification, ZIMMessageEditedResult, onMessageEdited, onConversationChanged, onMessageRepliedInfoChanged. Related APIs: queryHistoryMessage, sendMessage.

  • message The message needs to be edited.
  • config Edit the configuration of the message.
  • notification Message send notification object (optional).

Implementation

Future<ZIMMessageEditedResult> editMessage(
  ZIMMessage message,
  ZIMMessageEditConfig config,
  ZIMMessageSendNotification? notification,
);