Update a message

Update time: 2024/03/07 11:13:59

The MessageService class provides methods used to update the extension fields of messages.

DO NOT update notification messages NIMMessageType .

Prerequisites

The event stream onMessageStatus for changes of message status is registered and a message is delivered.

Update the extension field

NIM The SDK can update client-side extension fields of messages in the local database. The SDK updates the extension field by calling updateMessage.

dartNimCore.instance.messageService.updateMessage(message).then((value){
        if(value.isSuccess){
          // TODO success
        }
      });
Was this page helpful?
Yes
No
  • Prerequisites
  • Update the extension field