fix enabling e2e encryption in room settings
This commit is contained in:
parent
a1505971fc
commit
2bf51da73e
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@ module.exports = async function changeRoomSettings(session, settings) {
|
||||||
}
|
}
|
||||||
|
|
||||||
securityTabButton.click();
|
securityTabButton.click();
|
||||||
const securitySwitches = await session.waitAndQueryAll(".mx_RoomSettingsDialog .mx_ToggleSwitch");
|
await session.delay(500);
|
||||||
|
const securitySwitches = await session.queryAll(".mx_RoomSettingsDialog .mx_ToggleSwitch");
|
||||||
const e2eEncryptionToggle = securitySwitches[0];
|
const e2eEncryptionToggle = securitySwitches[0];
|
||||||
|
|
||||||
if (typeof settings.encryption === "boolean") {
|
if (typeof settings.encryption === "boolean") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue