Update a message

Update time: 2023/02/01 16:32:01

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.

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