fix: update room list when space option to show people is checked

This commit is contained in:
Florian Duros 2025-09-17 17:12:10 +02:00
parent 78cb26201b
commit 094ede4ce0
No known key found for this signature in database
GPG Key ID: A5BBB4041B493F15

View File

@ -81,6 +81,11 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
super(dispatcher);
this.msc3946ProcessDynamicPredecessor = SettingsStore.getValue("feature_dynamic_room_predecessors");
SpaceStore.instance.on(UPDATE_SELECTED_SPACE, () => {
SettingsStore.unwatchSetting("Spaces.showPeopleInSpace");
SettingsStore.watchSetting("Spaces.showPeopleInSpace", SpaceStore.instance.activeSpace, () =>
this.onActiveSpaceChanged(),
);
this.onActiveSpaceChanged();
});
SpaceStore.instance.on(UPDATE_HOME_BEHAVIOUR, () => this.onActiveSpaceChanged());