Skip to content

Commit fb63cf6

Browse files
committed
Fix ambiguous usage of types
1 parent e67de7f commit fb63cf6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

DemoApp/Screens/DemoReminderListVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ extension DemoReminderListVC: MessageReminderListControllerDelegate, EventsContr
478478
updateRemindersData()
479479
}
480480

481-
func eventsController(_ controller: EventsController, didReceiveEvent event: any Event) {
481+
func eventsController(_ controller: EventsController, didReceiveEvent event: any StreamChat.Event) {
482482
if event is MessageReminderDueEvent {
483483
updateReminderListsWithNewNowDate()
484484
}

DemoApp/Screens/Livestream/DemoLivestreamChatChannelVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ class DemoLivestreamChatChannelVC: _ViewController,
393393
messageListVC.scrollToBottomButton.content = .init(messages: skippedMessagesAmount, mentions: 0)
394394
}
395395

396-
func eventsController(_ controller: EventsController, didReceiveEvent event: any Event) {
396+
func eventsController(_ controller: EventsController, didReceiveEvent event: any StreamChat.Event) {
397397
if event is NewMessagePendingEvent {
398398
if livestreamChannelController.isPaused {
399399
pauseBannerView.setState(.resuming)

DemoApp/StreamChat/Components/DemoChatThreadVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class DemoChatThreadVC: ChatThreadVC, CurrentChatUserControllerDelegate {
7272

7373
// MARK: - Dismissing the thread if the root message was hard deleted.
7474

75-
override func eventsController(_ controller: EventsController, didReceiveEvent event: any Event) {
75+
override func eventsController(_ controller: EventsController, didReceiveEvent event: any StreamChat.Event) {
7676
super.eventsController(controller, didReceiveEvent: event)
7777

7878
// Dismiss the thread if the root message was hard deleted.

Tests/StreamChatUITests/SnapshotTests/Composer/ComposerVC_Tests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ import XCTest
837837
composerVC.updateContent()
838838

839839
let url = URL(string: "https://github.com/GetStream/stream-chat-swift")!
840-
mockAPIClient.test_mockResponseResult(Result<LinkAttachmentPayload, Error>.failure(ClientError()))
840+
mockAPIClient.test_mockResponseResult(Result<LinkAttachmentPayload, Error>.failure(StreamChat.ClientError()))
841841

842842
composerVC.didChangeLinks([
843843
.init(url: url, originalText: "https://github.com/GetStream/stream-chat-swift", range: .init(location: 0, length: 0)),
@@ -865,7 +865,7 @@ import XCTest
865865
composerVC.updateContent()
866866

867867
let url = URL(string: "https://github.com/GetStream/stream-chat-swift")!
868-
mockAPIClient.test_mockResponseResult(Result<LinkAttachmentPayload, Error>.failure(ClientError()))
868+
mockAPIClient.test_mockResponseResult(Result<LinkAttachmentPayload, Error>.failure(StreamChat.ClientError()))
869869

870870
composerVC.didChangeLinks([
871871
.init(url: url, originalText: "https://github.com/GetStream/stream-chat-swift", range: .init(location: 0, length: 0)),
@@ -894,7 +894,7 @@ import XCTest
894894
composerVC.updateContent()
895895

896896
let url = URL(string: "https://github.com/GetStream/stream-chat-swift")!
897-
mockAPIClient.test_mockResponseResult(Result<LinkAttachmentPayload, Error>.failure(ClientError()))
897+
mockAPIClient.test_mockResponseResult(Result<LinkAttachmentPayload, Error>.failure(StreamChat.ClientError()))
898898

899899
composerVC.didChangeLinks([
900900
.init(url: url, originalText: "https://github.com/GetStream/stream-chat-swift", range: .init(location: 0, length: 0)),

0 commit comments

Comments
 (0)