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

added setting not to show indirect rooms of spaces in left sidebar #12317

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

suiluj482
Copy link

  • Add Setting "Space.showIndirectRoomsInSpace" (Don't download E2E devices if feature disabled #418)
  • Changed SpaceFilterCondition and its tests to comply with new setting
  • Changed SpaceStore to watch new setting and if updated emit event SpaceFilterCondition already listens for. Added a test for it.

Signed-off-by: Julius Schuchert 84525736+suiluj482@users.noreply.github.com

* Add Setting "Space.showIndirectRoomsInSpace" (matrix-org#418)
* Changed SpaceFilterCondition and its tests to comply with new setting
* Changed SpaceStore to watch new setting and if updated emit event SpaceFilterCondition already listens for. Added a test for it.

Signed-off-by: Julius Schuchert <84525736+suiluj482@users.noreply.github.com>
@suiluj482 suiluj482 requested a review from a team as a code owner March 6, 2024 02:38
@github-actions github-actions bot added the Z-Community-PR Issue is solved by a community member's PR label Mar 6, 2024
@t3chguy
Copy link
Member

t3chguy commented Mar 6, 2024

Related #7682

@t3chguy t3chguy requested a review from a team March 6, 2024 08:42
private space: SpaceKey = MetaSpace.Home;

public isVisible(room: Room): boolean {
return SpaceStore.instance.isRoomInSpace(this.space, room.roomId);
return SpaceStore.instance.isRoomInSpace(this.space, room.roomId, this.showIndirectRoomsInSpace);
}

private onStoreUpdate = async (forceUpdate = false): Promise<void> => {
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this.roomIds and this.userIds don't respect this.showIndirectRoomsInSpace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-Community-PR Issue is solved by a community member's PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants