Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

don't show rooms when they're ignored #8988

Closed
wants to merge 1 commit into from

Conversation

jesopo
Copy link

@jesopo jesopo commented Jul 5, 2022

based on #8983. will want an additional UI change to warn users that they're looking at an ignored room (with an option to unignore) if they click on a room link for an ignored room


This PR currently has none of the required changelog labels.

Add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is plus X-Breaking-Change if it's a breaking change.

Signed-off-by: jesopo <github@lolnerd.net>
@@ -54,6 +55,11 @@ export class VisibilityProvider {
return false;
}

const cli = MatrixClientPeg.get();
if (cli.getIgnoredInvites()?.ignored_rooms?.includes(room.roomId) ?? false) {
Copy link
Member

Choose a reason for hiding this comment

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

surely this should also be checking the room is an invite, in case you joined it via a client which doesn't support that MSC. This specifically says getIgnoredInvites

Copy link
Author

Choose a reason for hiding this comment

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

yes, this is true, but there's ongoing discussion about whether we just want to ignore invites, or ignore rooms wholesale; the idea being someone might want to ignore a room they're already in. i should have made that clear in the body of this PR

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 surprised this is the shape it is, ignoring users happens at the server level, why wouldn't ignoring rooms work the same? With the way it is currently structured, your /sync may include a billion rooms which you ignore at the UI level.

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe that we should focus on ignoring invites for the time being.

Copy link
Author

Choose a reason for hiding this comment

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

in that case; i assume i'm going to have to hand something like cause off to VisibilityProvider

Copy link
Member

Choose a reason for hiding this comment

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

Or move it into the js-sdk getVisibleRooms

@robintown robintown requested review from a team, andybalaam and germain-gg and removed request for duxovni, SimonBrandner, robintown, a team, andybalaam and germain-gg July 5, 2022 15:30
@robintown
Copy link
Member

Please re-request review from the element-web team when this is no longer a draft

@Yoric
Copy link
Contributor

Yoric commented Sep 7, 2022

Upgraded to the latest API (plus applied feedback) in #9255.

@Yoric Yoric closed this Sep 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants