-
Notifications
You must be signed in to change notification settings - Fork 88
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
General channel no longer visible after deletion, recreation #2334
Comments
Here was a useful tidbit from the logs. The local state is missing a channel from the database state.
Do we update the local state from the database state on every return to this screen? Or whenever the app returns to foreground? If not we should! If so, what's breaking? |
Channels state is synchronized in those cases:
|
So it should be synchronizing on restart, correct? And it is not? |
I connected to the same community using Quiet 2.1.1 desktop on Linux. I was already a part of this community. Informative parts of the logs:
|
I don't know how app entered this state in the first place but I know why general channel is not being displayed.
Database does not have channel quiet/packages/state-manager/src/sagas/publicChannels/channelsReplicated/channelsReplicated.saga.ts Lines 27 to 53 in 5a5e0c5
In this case Imho this saga needs refactoring. |
Managed to reproduce it:
|
Version: 2.2.0-alpha.2 I followed the steps mentioned by Emilia and played around with this functionality a little more trying to break it, and I didn't manage to do it. I consider this issue fixed. |
Right now Quiet on Android is in a state where the general channel is not visible. That should never happen because even if the general channel is deleted it should be recreated.
On desktop the general channel was indeed recreated after deletion. But on Android I can no longer see it.
This is happening in the main quiet test community and I can provide access if necessary. I am not sure what exact sequence of steps caused the bug to happen, but what happened was that I deleted the general channel while the Android app was offline and when it came back online, the general channel was gone. It is still visible on desktop clients in the same community.
Is the list of channels in the sidebar eventually consistent in the backend? How do we ensure it converges? How do we ensure the frontend converges?
UPDATE: These are the channels I see in the frontend:
The text was updated successfully, but these errors were encountered: