Skip to main content

deleteMessageFromLocalStorage

Description

info

Delete a message from local storage. It can still be retrieved after reinstalling the APP.

Note

Related Callback:
onConversationChanged
If the deleted message is the latest message, the latest message of the conversation will change

Function Prototype


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

Input Parameters

Parameter NameParameter TypeRequiredDescription
conversationIDNSStringYesConversation ID
clientMsgIDNSStringYesMessage ID

Return Result

NameTypeDescription
onSuccessOIMSuccessCallbackSuccess return
onFailureOIMFailureCallbackFailure return

Code Example


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

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

}];