Skip to content

Commit c0d91a4

Browse files
Emit event after rebuilding home space (#30132)
1 parent 55e874f commit c0d91a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stores/spaces/SpaceStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,11 +1302,11 @@ export class SpaceStoreClass extends AsyncStoreWithClient<EmptyObject> {
13021302
const newValue = SettingsStore.getValue("Spaces.allRoomsInHome");
13031303
if (this.allRoomsInHome !== newValue) {
13041304
this._allRoomsInHome = newValue;
1305-
this.emit(UPDATE_HOME_BEHAVIOUR, this.allRoomsInHome);
13061305
if (this.enabledMetaSpaces.includes(MetaSpace.Home)) {
13071306
this.rebuildHomeSpace();
13081307
}
13091308
this.sendUserProperties();
1309+
this.emit(UPDATE_HOME_BEHAVIOUR, this.allRoomsInHome);
13101310
}
13111311
break;
13121312
}

0 commit comments

Comments
 (0)