From 459c1f76302253fbc6c7dec96d26df792b9b5c0d Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Sat, 30 Nov 2024 19:48:17 +0100 Subject: [PATCH] Disable showing people in spaces by default --- element-web | 2 +- ...-showing-people-in-spaces-by-default.patch | 39 +++++++++++++++++++ ...-Improve-IRC-layout-for-SchildiChat.patch} | 2 +- 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 patches/element-web/0031-Disable-showing-people-in-spaces-by-default.patch rename patches/element-web/{0031-Improve-IRC-layout-for-SchildiChat.patch => 0032-Improve-IRC-layout-for-SchildiChat.patch} (99%) diff --git a/element-web b/element-web index 1ff5a6c4..f335d70a 160000 --- a/element-web +++ b/element-web @@ -1 +1 @@ -Subproject commit 1ff5a6c421fd9f49b131d7c7ea4a0e6d7f257d7b +Subproject commit f335d70a269599914d037a9a09b4339f1315d8e8 diff --git a/patches/element-web/0031-Disable-showing-people-in-spaces-by-default.patch b/patches/element-web/0031-Disable-showing-people-in-spaces-by-default.patch new file mode 100644 index 00000000..3d7d35e5 --- /dev/null +++ b/patches/element-web/0031-Disable-showing-people-in-spaces-by-default.patch @@ -0,0 +1,39 @@ +From f45d0c6db3465497338b4bf87c65b8205af28c42 Mon Sep 17 00:00:00 2001 +From: SpiritCroc +Date: Sat, 30 Nov 2024 19:42:44 +0100 +Subject: Disable showing people in spaces by default + +--- + src/settings/Settings.tsx | 2 +- + src/stores/room-list/filters/SpaceFilterCondition.ts | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/settings/Settings.tsx b/src/settings/Settings.tsx +index 51404c88d4..c4c8e719f9 100644 +--- a/src/settings/Settings.tsx ++++ b/src/settings/Settings.tsx +@@ -1073,7 +1073,7 @@ export const SETTINGS: { [setting: string]: ISetting } = { + }, + "Spaces.showPeopleInSpace": { + supportedLevels: [SettingLevel.ROOM_ACCOUNT], +- default: true, ++ default: false, + }, + "developerMode": { + displayName: _td("devtools|developer_mode"), +diff --git a/src/stores/room-list/filters/SpaceFilterCondition.ts b/src/stores/room-list/filters/SpaceFilterCondition.ts +index 8f652a35fb..da02328e89 100644 +--- a/src/stores/room-list/filters/SpaceFilterCondition.ts ++++ b/src/stores/room-list/filters/SpaceFilterCondition.ts +@@ -25,7 +25,7 @@ import SettingsStore from "../../../settings/SettingsStore"; + export class SpaceFilterCondition extends EventEmitter implements IFilterCondition, IDestroyable { + private roomIds = new Set(); + private userIds = new Set(); +- private showPeopleInSpace = true; ++ private showPeopleInSpace = false; + private space: SpaceKey = MetaSpace.Home; + + public isVisible(room: Room): boolean { +-- +2.47.0 + diff --git a/patches/element-web/0031-Improve-IRC-layout-for-SchildiChat.patch b/patches/element-web/0032-Improve-IRC-layout-for-SchildiChat.patch similarity index 99% rename from patches/element-web/0031-Improve-IRC-layout-for-SchildiChat.patch rename to patches/element-web/0032-Improve-IRC-layout-for-SchildiChat.patch index 29c66a06..4bc3acef 100644 --- a/patches/element-web/0031-Improve-IRC-layout-for-SchildiChat.patch +++ b/patches/element-web/0032-Improve-IRC-layout-for-SchildiChat.patch @@ -1,4 +1,4 @@ -From a5e5f36ce4117bdb72da63e1ed30b55602bec2d2 Mon Sep 17 00:00:00 2001 +From e2b0f154492779fa8df8abefc12c4bbe273994e4 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Thu, 31 Oct 2024 13:44:20 -0400 Subject: Improve IRC layout for SchildiChat