Emit event after rebuilding home space (#30132)

This commit is contained in:
R Midhun Suresh 2025-06-12 19:00:50 +05:30 committed by GitHub
parent 55e874fb50
commit c0d91a46c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1302,11 +1302,11 @@ export class SpaceStoreClass extends AsyncStoreWithClient<EmptyObject> {
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;
}