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

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

Closed
jesopo wants to merge 1 commit into
matrix-org:developfrom
jesopo:dont-show-ignored-rooms
Closed

don't show rooms when they're ignored#8988
jesopo wants to merge 1 commit into
matrix-org:developfrom
jesopo:dont-show-ignored-rooms

Conversation

@jesopo
Copy link
Copy Markdown

@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>
@jesopo jesopo requested a review from a team as a code owner July 5, 2022 12:26
@jesopo jesopo marked this pull request as draft July 5, 2022 12:26
}

const cli = MatrixClientPeg.get();
if (cli.getIgnoredInvites()?.ignored_rooms?.includes(room.roomId) ?? false) {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 a team, SimonBrandner, andybalaam, duxovni, germain-gg and robintown July 5, 2022 15:30
@robintown
Copy link
Copy Markdown
Member

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

@Yoric
Copy link
Copy Markdown
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