From c0d91a46c778d202bdb9872447870e76372b77ea Mon Sep 17 00:00:00 2001 From: R Midhun Suresh Date: Thu, 12 Jun 2025 19:00:50 +0530 Subject: [PATCH] Emit event after rebuilding home space (#30132) --- src/stores/spaces/SpaceStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/spaces/SpaceStore.ts b/src/stores/spaces/SpaceStore.ts index 015c9fa0fd..2945d486c2 100644 --- a/src/stores/spaces/SpaceStore.ts +++ b/src/stores/spaces/SpaceStore.ts @@ -1302,11 +1302,11 @@ export class SpaceStoreClass extends AsyncStoreWithClient { const newValue = SettingsStore.getValue("Spaces.allRoomsInHome"); if (this.allRoomsInHome !== newValue) { this._allRoomsInHome = newValue; - this.emit(UPDATE_HOME_BEHAVIOUR, this.allRoomsInHome); if (this.enabledMetaSpaces.includes(MetaSpace.Home)) { this.rebuildHomeSpace(); } this.sendUserProperties(); + this.emit(UPDATE_HOME_BEHAVIOUR, this.allRoomsInHome); } break; }