isDeleted
is true
. In one-to-one conversations, deleted messages cannot be pulled on the next login, but the receiver will not be affected. In group conversations, deleted messages cannot be pulled on the next login, but other group members will not be affected.chat.deleteMessage(messageList);
Name | Type | Description |
messageList | Array | List of messages (up to 30) in the same conversation |
Promise
let promise = chat.deleteMessage([message1, message2, message3, ...]);promise.then(function(imResponse) {// Messages deleted successfully}).catch(function(imError) {// Failed to delete the messagesconsole.warn('deleteMessage error:', imError);});
Was this page helpful?