Emit event after rebuilding home space (#30132)
This commit is contained in:
@@ -1302,11 +1302,11 @@ export class SpaceStoreClass extends AsyncStoreWithClient<EmptyObject> {
|
|||||||
const newValue = SettingsStore.getValue("Spaces.allRoomsInHome");
|
const newValue = SettingsStore.getValue("Spaces.allRoomsInHome");
|
||||||
if (this.allRoomsInHome !== newValue) {
|
if (this.allRoomsInHome !== newValue) {
|
||||||
this._allRoomsInHome = newValue;
|
this._allRoomsInHome = newValue;
|
||||||
this.emit(UPDATE_HOME_BEHAVIOUR, this.allRoomsInHome);
|
|
||||||
if (this.enabledMetaSpaces.includes(MetaSpace.Home)) {
|
if (this.enabledMetaSpaces.includes(MetaSpace.Home)) {
|
||||||
this.rebuildHomeSpace();
|
this.rebuildHomeSpace();
|
||||||
}
|
}
|
||||||
this.sendUserProperties();
|
this.sendUserProperties();
|
||||||
|
this.emit(UPDATE_HOME_BEHAVIOUR, this.allRoomsInHome);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user