-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to handle errors #637
Comments
Hi @f3dm76, We do show an error if synchronize fails, like in the picture below. If there is an error it will be available in the Also, make sure you update to the last version. |
Hey @nuno-vieira, thank you for your answer. My situation is this - I navigate to chat details screen:
asking for chat controller like this I'd expect smth like:
|
Hi @f3dm76, My bad I got confused with the Channel List. Indeed, it seems on SwiftUI this is missing in the channel view. We will add this to our backlog and we will let you know once we pick this one up 👍 Best, |
What are you trying to achieve?
I'm displaying the chat like this:
ChatChannelView(viewFactory: viewFactory, channelController: controller)
Sometimes it just shows a loading indicator indefinitely, I guess there was some error inside ChatChannelController, I'd like to receive that error, display it for the user, and handle it somehow
If possible, how can you achieve this currently?
It's doable through ChatChannelVC.didFinishSynchronizing(error:), but I didn't find a way in SwiftUI
What would be the better way?
For example ChatChannelController can have an error publisher. Or ChatChannelView can have a closure parameter to handle errors.
GetStream Chat version: 4.62.0
GetStream Chat frameworks: StreamChat, StreamChatUI
iOS version: 18.0
Swift version: 6.0
Xcode version: 16.0
Device: sim iPhone 16 pro max
The text was updated successfully, but these errors were encountered: