Skip to content
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

fix(community): getting kicked out of a community should still spectate #4217

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

jrainville
Copy link
Member

Fixes status-im/status-desktop#12558

When getting kicked out of a community, before we used to leave the community completely, but just keep the filters on. That created a problem when reopening the app, because the community disappeared and could even create a problem in desktop where it tried to open the last opened community but it's no longer there.

The fix now is that when getting kicked out, we instead just remove ourselves from the community and set Joined to false, but we keep the community spectated.

@status-im-auto
Copy link
Member

status-im-auto commented Oct 26, 2023

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 8564f1a #1 2023-10-26 18:51:43 ~3 min linux 📦zip
✖️ 8564f1a #1 2023-10-26 18:52:49 ~4 min tests 📄log
✔️ 8564f1a #1 2023-10-26 18:53:30 ~5 min android 📦aar
✔️ 8564f1a #1 2023-10-26 18:54:07 ~6 min ios 📦zip
✔️ f96c730 #2 2023-10-26 19:44:49 ~1 min linux 📦zip
✔️ f96c730 #2 2023-10-26 19:45:14 ~2 min android 📦aar
✖️ f96c730 #2 2023-10-26 19:46:13 ~2 min tests 📄log
✔️ f96c730 #2 2023-10-26 19:47:05 ~3 min ios 📦zip
✔️ f96c730 #3 2023-10-27 19:09:59 ~31 min tests 📄log

protocol/messenger_communities.go Outdated Show resolved Hide resolved
Fixes status-im/status-desktop#12558

When getting kicked out of  a community, before we used to leave the community completely, but just keep the filters on.
That created a problem when reopening the app, because the community disappeared and could even create a problem in desktop where it tried to open the last opened community but it's no longer there.

The fix now is that when getting kicked out, we instead just remove ourselves from the community and set Joined to false, but we keep the community spectated.
@jrainville jrainville merged commit 0cac2af into develop Oct 27, 2023
7 checks passed
@jrainville jrainville deleted the fix/kicked-out-of-community branch October 27, 2023 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chats are not loading if user was kicked and restarted the app
4 participants