From 2bf51da73e58ef16b3807302051293faa4b34008 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 2 Apr 2019 14:29:23 +0200 Subject: [PATCH] fix enabling e2e encryption in room settings --- src/usecases/room-settings.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usecases/room-settings.js b/src/usecases/room-settings.js index ca0bcf2a95..e204d24a52 100644 --- a/src/usecases/room-settings.js +++ b/src/usecases/room-settings.js @@ -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") {