Skip to content

Commit 094ede4

Browse files
committed
fix: update room list when space option to show people is checked
1 parent 78cb262 commit 094ede4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/stores/room-list-v3/RoomListStoreV3.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
8181
super(dispatcher);
8282
this.msc3946ProcessDynamicPredecessor = SettingsStore.getValue("feature_dynamic_room_predecessors");
8383
SpaceStore.instance.on(UPDATE_SELECTED_SPACE, () => {
84+
SettingsStore.unwatchSetting("Spaces.showPeopleInSpace");
85+
SettingsStore.watchSetting("Spaces.showPeopleInSpace", SpaceStore.instance.activeSpace, () =>
86+
this.onActiveSpaceChanged(),
87+
);
88+
8489
this.onActiveSpaceChanged();
8590
});
8691
SpaceStore.instance.on(UPDATE_HOME_BEHAVIOUR, () => this.onActiveSpaceChanged());

0 commit comments

Comments
 (0)