1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-12-01 09:58:03 +03:00

Fix issue where we don't notice if our own devices shouldn't be trusted

This commit is contained in:
Zoe
2020-01-27 16:40:56 +00:00
parent 0eb49c4c72
commit 1964e18315
2 changed files with 2 additions and 2 deletions

View File

@@ -811,7 +811,7 @@ export default createReactClass({
debuglog("e2e verified", verified, "unverified", unverified);
/* Check all verified user devices. */
for (const userId of verified) {
for (const userId of [...verified, cli.getUserId()]) {
const devices = await cli.getStoredDevicesForUser(userId);
const anyDeviceNotVerified = devices.some(({deviceId}) => {
return !cli.checkDeviceTrust(userId, deviceId).isVerified();