Skip to main content

hideConversation

Feature Introduction

Description

Hides a local conversation without deleting messages within the conversation. The conversation will be displayed again upon receiving a new message.

Function Prototype


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

Input Parameters

Parameter NameParameter TypeMandatoryDescription
conversationIDNSStringYesConversation ID

Return Results

NameTypeDescription
onSuccessOIMSuccessCallbackSuccessful return
onFailureOIMFailureCallbackFailed return

Code Example


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

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

}];