-
Notifications
You must be signed in to change notification settings - Fork 347
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
Disabled channels are not removed from persistence client #2036
Comments
This issue is stale because it has been open for 20 days with no activity. |
I see the same thing, but not necessarily from disabled channels, but deleted channels. When the app first loads, the channels get loaded from offline persistence and shows a bunch of channels that have been removed, once it syncs with api, the channels all get removed. However, every app start/load still shows these deleted channels. As noted above this creates a brief moment where a user sees an inaccurate channel list. |
This issue is stale because it has been open for 20 days with no activity. |
not stale |
I got around this issue by customizing the StreamMessageSearchListController and StreamChannelListController filter in my channel list widget. For example:
This filter filters out all disabled channels. I'm sure this can be done for deleted channels as well. |
I also ran into this issue. Reaching into the chat client and dumping the cache seems to fix it for me. When I delete a channel I do this:
That seems to be a workaround for me. |
Which packages are you using?
stream_chat_flutter, stream_chat_persistance
On what platforms did you experience the issue?
iOS
What version are you using?
stream_chat_flutter - 8.0.0
stream_chat_persistencee - 8.0.0
What happened?
When channels are disabled using a server side sdk the channels on the client are not removed from the persistence client. When offline the disabled channels still show in the channel list. When the user is online and the channel list is refreshed this also leads to the disabled channels showing momentarily.
This issue is similar to these previous issues:
Steps to reproduce
1. Disable channel server side ie. with python: channel.update_partial(to_set={"disabled": True}) 2. If online, refresh channel list and disabled channels show momentarily 3. If offline, channel list shows disabled channels
Supporting info to reproduce
No response
Relevant log output
No response
Flutter analyze output
No response
Flutter doctor output
Code of Conduct
The text was updated successfully, but these errors were encountered: