Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 947f1bd

Browse files
authored
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 <[email protected]>
1 parent 910e620 commit 947f1bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/ProxiedModuleApi.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import { getCachedRoomIDForAlias } from "../RoomAliasCache";
3737
import { Action } from "../dispatcher/actions";
3838
import { OverwriteLoginPayload } from "../dispatcher/payloads/OverwriteLoginPayload";
3939
import { ActionPayload } from "../dispatcher/payloads";
40+
import SettingsStore from "../settings/SettingsStore";
4041

4142
/**
4243
* Glue between the `ModuleApi` interface and the react-sdk. Anticipates one instance
@@ -202,6 +203,7 @@ export class ProxiedModuleApi implements ModuleApi {
202203
if (andJoin) {
203204
dispatcher.dispatch({
204205
action: Action.JoinRoom,
206+
canAskToJoin: SettingsStore.getValue("feature_ask_to_join"),
205207
});
206208
}
207209
}

0 commit comments

Comments
 (0)