Skip to main content

getOneConversation

Feature Introduction

Description

Retrieve conversation details.

Function Prototype


- (void)getOneConversationWithSessionType:(OIMConversationType)sessionType
sourceID:(NSString *)sourceID
onSuccess:(nullable OIMConversationInfoCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeMandatoryDescription
sessionTypeOIMConversationTypeYesType of conversation
sourceIDNSStringYesUser ID for private chats, Group ID for group chats

Return Value

NameTypeDescription
onSuccessOIMConversationInfoSuccessful return
onFailureOIMFailureCallbackFailed return

Example Code


[OIMManager.manager getOneConversationWithSessionType:
sourceID:@""
onSuccess:^(OIMConversationInfo * _Nullable conversation) {

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

}];