-
Notifications
You must be signed in to change notification settings - Fork 101
Added a method for configuring the channel alert type #801
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
Conversation
SDK Size
|
…iftui into channel-alert-open
|
@@ -217,13 +217,17 @@ open class ChatChannelListViewModel: ObservableObject, ChatChannelListController | |||
controller.deleteChannel { [weak self] error in | |||
if error != nil { | |||
// handle error | |||
self?.channelAlertType = .error | |||
self?.setChannelAlertType(.error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the customer have access to the actual error? 🤔 Otherwise, if they want to display an alert depending on the error type, it will be difficult. To make this more flexible, we should have at least in the future something like we do on the ThreadList, where a customer can totaly customize the Error view by implementing a modifier: https://getstream.io/chat/docs/sdk/ios/swiftui/thread-list/#thread-list-states
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we can expose a modifier in the future. Basically this customer wants to disable all errors.
🔗 Issue Links
Resolves https://linear.app/stream/issue/IOS-771/%5Bswiftui%5D%5Bcare%5D-make-channel-list-error-customizable.
🎯 Goal
Make it easier to configure the error popup in the channel list view.
📝 Summary
Provide bullet points with the most important changes in the codebase.
🛠 Implementation
Provide a detailed description of the implementation and explain your decisions if you find them relevant.
🎨 Showcase
Add relevant screenshots and/or videos/gifs to easily see what this PR changes, if applicable.
🧪 Manual Testing Notes
Explain how this change can be tested manually, if applicable.
☑️ Contributor Checklist
docs-content
repo