Message withdrawn
Note: The message withdrawal is a value-added function, please contact Agora Business Opening.
/*!
* Withdraw message
*
* Asynchronous method
*
* @param aMessageId Message Id
* @param aCompletionBlock Completed callback
*/
- (void)recallMessageWithMessageId:(NSString *)aMessageId
completion:(void (^)(AgoraError *aError))aCompletionBlock;
// Call:
[[AgoraChatClient sharedClient].chatManager recallMessageWithMessageId:messageId completion:^(AgoraError *aError) {
if (!aError) {
NSLog(@"Withdraw the message successfully");
} else {
NSLog(@"Reasons for failure to withdraw the message--- %@", aError.errorDescription);
}
}];
Message withdrawal receipt
/*!
* withdrawn Received message
*
* @param aMessages Withdraw messages list<AgoraMessage>
*/
- (void)messagesDidRecall:(NSArray *)aMessages;