From 947f1bd591579aaaa7882ed52bcbd5d4210b1719 Mon Sep 17 00:00:00 2001 From: Dominik Henneke Date: Fri, 27 Oct 2023 14:51:39 +0200 Subject: [PATCH] Knock on a ask-to-join room if a module wants to join the room when navigating to a room (#11787) Signed-off-by: Dominik Henneke --- src/modules/ProxiedModuleApi.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/ProxiedModuleApi.ts b/src/modules/ProxiedModuleApi.ts index e3aa453a8a..67d9bf5e49 100644 --- a/src/modules/ProxiedModuleApi.ts +++ b/src/modules/ProxiedModuleApi.ts @@ -37,6 +37,7 @@ import { getCachedRoomIDForAlias } from "../RoomAliasCache"; import { Action } from "../dispatcher/actions"; import { OverwriteLoginPayload } from "../dispatcher/payloads/OverwriteLoginPayload"; import { ActionPayload } from "../dispatcher/payloads"; +import SettingsStore from "../settings/SettingsStore"; /** * Glue between the `ModuleApi` interface and the react-sdk. Anticipates one instance @@ -202,6 +203,7 @@ export class ProxiedModuleApi implements ModuleApi { if (andJoin) { dispatcher.dispatch({ action: Action.JoinRoom, + canAskToJoin: SettingsStore.getValue("feature_ask_to_join"), }); } }