Protect onAction dispatch handler on the SpaceStore with Spaces disabled

pull/21833/head
Michael Telatynski 2021-03-02 15:35:02 +00:00
parent 43cc7deeda
commit d1a75885a7
1 changed files with 1 additions and 0 deletions

View File

@ -408,6 +408,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
}
protected async onAction(payload: ActionPayload) {
if (!SettingsStore.getValue("feature_spaces")) return;
switch (payload.action) {
case "view_room": {
const room = this.matrixClient?.getRoom(payload.room_id);