diff --git a/Quotient/connectionencryptiondata_p.cpp b/Quotient/connectionencryptiondata_p.cpp index 891fb3b18..c7c43b961 100644 --- a/Quotient/connectionencryptiondata_p.cpp +++ b/Quotient/connectionencryptiondata_p.cpp @@ -570,7 +570,7 @@ void ConnectionEncryptionData::handleQueryKeys(const QHash(device)), device.signatures[user]["ed25519:"_ls % selfSigningKey])) { + if (ed25519VerifySignature(selfSigningKey, toJson(static_cast(device)), device.signatures[user]["ed25519:"_ls % selfSigningKey])) { selfVerifiedDevices[user][device.deviceId] = true; emit q->sessionVerified(user, device.deviceId); } else {