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
no need to verify our own devices for every room
This commit is contained in:
@@ -820,7 +820,7 @@ export default createReactClass({
|
|||||||
|
|
||||||
/* At this point, either `verified` or `unverified` is empty, or both */
|
/* 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. */
|
/* 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 devices = await cli.getStoredDevicesForUser(userId);
|
||||||
const allDevicesVerified = devices.every(({deviceId}) => {
|
const allDevicesVerified = devices.every(({deviceId}) => {
|
||||||
return cli.checkDeviceTrust(userId, deviceId).isCrossSigningVerified();
|
return cli.checkDeviceTrust(userId, deviceId).isCrossSigningVerified();
|
||||||
|
|||||||
Reference in New Issue
Block a user