Skip to main content

clearConversationAndDeleteAllMsg

Description​

info

Delete the messages in a specified conversation from both local and server, but the conversation itself will still be kept.

Note

Related Callbacks:
onConversationChanged

Function Prototype​


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

Input Parameters​

Parameter NameParameter TypeRequiredDescription
conversationIDNSStringYesConversation ID

Return Result​

NameTypeDescription
onSuccessOIMSuccessCallbackSuccess return
onFailureOIMFailureCallbackFailure return

Code Example​


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

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

}];