fix enabling e2e encryption in room settings

This commit is contained in:
Bruno Windels 2019-04-02 14:29:23 +02:00
parent a1505971fc
commit 2bf51da73e

View file

@ -59,7 +59,8 @@ module.exports = async function changeRoomSettings(session, settings) {
}
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];
if (typeof settings.encryption === "boolean") {