Skip to main content

deleteMessageFromLocalStorage

Feature Introduction

Note

Delete a message from local storage. After uninstalling the APP, it can be retrieved again.

Attention

Relevant Callback: onConversationChanged If the message being deleted is the latest one, the latest message in the conversation will change.

Function Prototype


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

Input Parameters

Parameter NameParameter TypeMandatoryDescription
conversationIDNSStringYesConversation ID
clientMsgIDNSStringYesMessage ID

Return Result

NameTypeDescription
onSuccessOIMSuccessCallbackSuccessful return
onFailureOIMFailureCallbackFailed return

Code Example


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

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

}];