Skip to main content

clearConversationAndDeleteAllMsg

Feature Introduction

Description

Deletes messages from a specified conversation both locally and on the server, but retains the conversation.

Note

Related Callback: onConversationChanged

Function Prototype


- (void)clearConversationAndDeleteAllMsg:(NSString *)conversationID
onSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeMandatoryDescription
conversationIDNSStringYesConversation ID

Return Result

NameTypeDescription
onSuccessOIMSuccessCallbackSuccess return
onFailureOIMFailureCallbackFailure return

Code Example


[OIMManager.manager clearConversationAndDeleteAllMsg:@""
onSuccess:^(NSString * _Nullable data) {

} onFailure:^(NSInteger code, NSString * _Nullable msg) {

}];