mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
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 <dominik.henneke@nordeck.net>
This commit is contained in:
parent
910e6200ed
commit
947f1bd591
1 changed files with 2 additions and 0 deletions
|
@ -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"),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue