From 42fe69aec9777d868da6504f3981e6023959c550 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 17 Jan 2020 14:08:37 +0000 Subject: [PATCH] Don't check devices if crypto is disabled --- src/DeviceListener.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DeviceListener.js b/src/DeviceListener.js index 4b779377e8..15ca931fc8 100644 --- a/src/DeviceListener.js +++ b/src/DeviceListener.js @@ -69,6 +69,8 @@ export default class DeviceListener { async recheck() { const cli = MatrixClientPeg.get(); + if (!cli.isCryptoEnabled()) return false; + const devices = await cli.getStoredDevicesForUser(cli.getUserId()); for (const device of devices) { if (device.deviceId == cli.deviceId) continue;