From af0598bbcb406148906884c836ea128d3c823266 Mon Sep 17 00:00:00 2001 From: Zoe Date: Fri, 31 Jan 2020 10:37:40 +0000 Subject: [PATCH] double-check user verification --- .../views/messages/MKeyVerificationConclusion.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/views/messages/MKeyVerificationConclusion.js b/src/components/views/messages/MKeyVerificationConclusion.js index c410c7fdff..1aaa79be63 100644 --- a/src/components/views/messages/MKeyVerificationConclusion.js +++ b/src/components/views/messages/MKeyVerificationConclusion.js @@ -63,6 +63,14 @@ export default class MKeyVerificationConclusion extends React.Component { if (request.pending) { return false; } + + // User isn't actually verified + if (!MatrixClientPeg.get() + .checkUserTrust(mxEvent.verificationRequest.otherUserId) + .isCrossSigningVerified()) { + return false; + } + return true; }