Skip to main content

revokeMessage

Feature Introduction

Description

Recall a message. Supports recalling messages sent by oneself or messages from group members recalled by administrators and group owners.

Note

After the recall, the original message will be transformed into a recall notification message with a message type of 2101, and it will still be in its original position. Related Callbacks: onNewRecvMessageRevoked onConversationChanged If the last message is recalled, the most recent message of the conversation will change.

Function Prototype


- (void)revokeMessage:(NSString *)conversationID
clientMsgID:(NSString *)clientMsgID
onSuccess:(OIMSuccessCallback)onSuccess
onFailure:(OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeRequiredDescription
conversationIDNSStringYesConversation ID
clientMsgIDNSStringYesMessage ID

Return Result

NameTypeDescription
onSuccessOIMSuccessCallbackSuccessful return
onFailureOIMFailureCallbackFailed return

Code Example


[OIMManager.manager revokeMessage:@""
clientMsgID:@""
onSuccess:^(NSString * _Nullable data) {
} onFailure:^(NSInteger code, NSString * _Nullable msg) {
}];