From d1a75885a7a65477ab106e65b745a6e2e972daf6 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 2 Mar 2021 15:35:02 +0000 Subject: [PATCH] Protect onAction dispatch handler on the SpaceStore with Spaces disabled --- src/stores/SpaceStore.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stores/SpaceStore.tsx b/src/stores/SpaceStore.tsx index d675879138..8e0066da91 100644 --- a/src/stores/SpaceStore.tsx +++ b/src/stores/SpaceStore.tsx @@ -408,6 +408,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient { } 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);