跳到主要内容

deleteMessageFromLocalStorage

功能介绍

说明

从本地删除一条消息,卸载 APP 后会重新获取到。

注意

相关回调
onConversationChanged
如果删除的是最新一条消息,则会话最新一条消息会改变

函数原型


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

输入参数

参数名称参数类型是否必填描述
conversationIDNSString会话 ID
clientMsgIDNSString消息 ID

返回结果

名称类型描述
onSuccessOIMSuccessCallback成功返回
onFailureOIMFailureCallback失败返回

代码示例


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

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

}];