We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 316b2ac + 1f5fb96 commit c91b43bCopy full SHA for c91b43b
articles/communication-services/quickstarts/chat/includes/chat-swift.md
@@ -345,7 +345,11 @@ let user = ChatParticipant(
345
chatThreadClient.add(participants: [user]) { result, _ in
346
switch result {
347
case let .success(result):
348
- (result.invalidParticipants != nil) ? print("Added participant") : print("Error adding participant")
+ if let errors = result.invalidParticipants, !errors.isEmpty {
349
+ print("Error adding participant")
350
+ } else {
351
+ print("Added participant")
352
+ }
353
case .failure:
354
print("Failed to add the participant")
355
}
0 commit comments