-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Conversation
MidhunSureshR
commented
Apr 24, 2025
•
edited
Loading
edited
- 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) { |
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.
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
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.
Done in 8aea39b
See comment on 8aea39b#r155818724 |