From 8efc45b31a504cfe65593077a9c6e8fc01f3c857 Mon Sep 17 00:00:00 2001 From: Zoe Date: Fri, 17 Jan 2020 10:04:34 +0000 Subject: [PATCH] no need to verify our own devices for every room --- src/components/structures/RoomView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 3cdc308758..e0997f87da 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -820,7 +820,7 @@ export default createReactClass({ /* At this point, either `verified` or `unverified` is empty, or both */ /* Check all verified user devices. We don't care if everyone's unverified anyway. */ - for (const userId of [...verified, cli.getUserId()]) { + for (const userId of verified) { const devices = await cli.getStoredDevicesForUser(userId); const allDevicesVerified = devices.every(({deviceId}) => { return cli.checkDeviceTrust(userId, deviceId).isCrossSigningVerified();