Skip to content

RoomListStore: Remove invite rooms on decline #29804

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

Merged
merged 4 commits into from
Apr 26, 2025

Conversation

MidhunSureshR
Copy link
Member

@MidhunSureshR MidhunSureshR commented Apr 24, 2025

  • Invites should be removed from the list when they're declined.
  • Kicked rooms should remain in the list until they're explicitly forgotten.

It doesn't really matter what the previous membership was.
@@ -194,7 +194,7 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
case "MatrixActions.Room.myMembership": {
const oldMembership = getEffectiveMembership(payload.oldMembership);
const newMembership = getEffectiveMembershipTag(payload.room, payload.membership);
if (oldMembership === EffectiveMembership.Join && newMembership === EffectiveMembership.Leave) {
if (newMembership === EffectiveMembership.Leave) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is right, if you get kicked from a room it should remain in your room list until it is forgotten otherwise you don't know you got kicked

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 8aea39b

@t3chguy
Copy link
Member

t3chguy commented Apr 24, 2025

See comment on 8aea39b#r155818724

@MidhunSureshR MidhunSureshR added this pull request to the merge queue Apr 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 24, 2025
@MidhunSureshR MidhunSureshR added this pull request to the merge queue Apr 26, 2025
Merged via the queue into develop with commit 83e6753 Apr 26, 2025
38 checks passed
@MidhunSureshR MidhunSureshR deleted the midhun/rls/decline-invites branch April 26, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants