Skip to main content

getConversationIDBySessionType

Description

info

Get the conversation ID based on the session type.

Function Prototype


- (NSString *)getConversationIDBySessionType:(OIMConversationType)sessionType
sourceID:(NSString *)sourceID;

Input Parameters

Parameter NameParameter TypeRequiredDescription
sessionTypeOIMConversationTypeYesSession type
sourceIDNSStringYesUser ID for one-to-one chat, group ID for group chat

Return Result

NameTypeDescription
conversationIDNSStringSuccess return

Code Example


NSString *conversationID = [OIMManager.manager getConversationIDBySessionType:OIMConversationTypeC2C sourceID:@""];