From d02185e4af661542e39a568d43aa58f19670ec0c Mon Sep 17 00:00:00 2001 From: Zoe Date: Fri, 17 Jan 2020 10:22:53 +0000 Subject: [PATCH] whoops, the number of unverified users matters to the logic --- src/components/structures/RoomView.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index aa3e86fa60..8ecb6a6a02 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -809,15 +809,6 @@ export default createReactClass({ debuglog("e2e verified", verified, "unverified", unverified); - /* If we've not verified anyone, set state to "normal" */ - if (verified.length == 0) { - this.setState({ - e2eStatus: "normal", - }); - debuglog("e2e state set to normal as we have no verified users to worry about"); - return; - } - /* Check all verified user devices. */ for (const userId of verified) { const devices = await cli.getStoredDevicesForUser(userId); @@ -835,7 +826,7 @@ export default createReactClass({ } this.setState({ - e2eStatus: "verified", + e2eStatus: unverified.length === 0 ? "verified" : "normal", }); },