You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
double-check user verification
This commit is contained in:
@@ -63,6 +63,14 @@ export default class MKeyVerificationConclusion extends React.Component {
|
|||||||
if (request.pending) {
|
if (request.pending) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// User isn't actually verified
|
||||||
|
if (!MatrixClientPeg.get()
|
||||||
|
.checkUserTrust(mxEvent.verificationRequest.otherUserId)
|
||||||
|
.isCrossSigningVerified()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user