Skip to main content

deleteAllMsgFromLocal

Function Introduction

Description

Deletes all messages in the local conversation, but the conversation itself remains intact. These messages can still be accessed after uninstalling and reinstalling the app.

Note

Relevant Callback: onConversationChanged

Function Prototype


- (void)deleteAllMsgFromLocalWithOnSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

None

Return Result

NameTypeDescription
onSuccessOIMSuccessCallbackSuccess Return
onFailureOIMFailureCallbackFailure Return

Code Example


[OIMManager.manager deleteAllMsgFromLocalOnSuccess:^(NSString * _Nullable data) {

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

}];