You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
whoops, the number of unverified users matters to the logic
This commit is contained in:
@@ -809,15 +809,6 @@ export default createReactClass({
|
|||||||
|
|
||||||
debuglog("e2e verified", verified, "unverified", unverified);
|
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. */
|
/* Check all verified user devices. */
|
||||||
for (const userId of verified) {
|
for (const userId of verified) {
|
||||||
const devices = await cli.getStoredDevicesForUser(userId);
|
const devices = await cli.getStoredDevicesForUser(userId);
|
||||||
@@ -835,7 +826,7 @@ export default createReactClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
e2eStatus: "verified",
|
e2eStatus: unverified.length === 0 ? "verified" : "normal",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user