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

Commit

Permalink
Knock on a ask-to-join room if a module wants to join the room when n…
Browse files Browse the repository at this point in the history
…avigating to a room (#11787)

Signed-off-by: Dominik Henneke <[email protected]>
  • Loading branch information
dhenneke authored Oct 27, 2023
1 parent 910e620 commit 947f1bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/ProxiedModuleApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -202,6 +203,7 @@ export class ProxiedModuleApi implements ModuleApi {
if (andJoin) {
dispatcher.dispatch({
action: Action.JoinRoom,
canAskToJoin: SettingsStore.getValue("feature_ask_to_join"),
});
}
}
Expand Down

0 comments on commit 947f1bd

Please sign in to comment.