You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/RTM/IMClient.swift
+40-43Lines changed: 40 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -537,14 +537,14 @@ extension IMClient {
537
537
extensionIMClient{
538
538
// MARK: Create Conversation
539
539
540
-
/// Create a Normal Conversation. Default is a Unique Conversation.
540
+
/// Create a Normal Conversation. Default is a Normal Unique Conversation.
541
541
///
542
542
/// - Parameters:
543
543
/// - clientIDs: The set of client ID. it's the members of the conversation which will be created. the initialized members always contains current client's ID. if the created conversation is unique, and server has one unique conversation with the same members, that unique conversation will be returned.
544
544
/// - name: The name of the conversation.
545
545
/// - attributes: The attributes of the conversation.
546
546
/// - isUnique: True means create or get a unique conversation, default is true.
547
-
/// - completion: callback.
547
+
/// - completion: Result callback.
548
548
publicfunc createConversation(
549
549
clientIDs:Set<String>,
550
550
name:String?=nil,
@@ -558,16 +558,15 @@ extension IMClient {
558
558
name: name,
559
559
attributes: attributes,
560
560
option:(isUnique ?.normalAndUnique :.normal),
561
-
completion: completion
562
-
)
561
+
completion: completion)
563
562
}
564
563
565
564
/// Create a Chat Room.
566
565
///
567
566
/// - Parameters:
568
567
/// - name: The name of the chat room.
569
568
/// - attributes: The attributes of the chat room.
570
-
/// - completion: callback.
569
+
/// - completion: Result callback.
571
570
publicfunc createChatRoom(
572
571
name:String?=nil,
573
572
attributes:[String:Any]?=nil,
@@ -579,16 +578,15 @@ extension IMClient {
579
578
name: name,
580
579
attributes: attributes,
581
580
option:.transient,
582
-
completion: completion
583
-
)
581
+
completion: completion)
584
582
}
585
583
586
584
/// Create a Temporary Conversation. Temporary Conversation is unique in it's Life Cycle.
587
585
///
588
586
/// - Parameters:
589
587
/// - clientIDs: The set of client ID. it's the members of the conversation which will be created. the initialized members always contains this client's ID.
590
588
/// - timeToLive: The time interval for the life of the temporary conversation.
0 commit comments