mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-08 19:01:43 +01:00
Emit event after rebuilding home space (#30132)
This commit is contained in:
parent
55e874fb50
commit
c0d91a46c7
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user