Skip to content

Commit

Permalink
Try fixing sonar error
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasFella committed Aug 17, 2023
1 parent 69bf5f1 commit 8479be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Quotient/connectionencryptiondata_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ void ConnectionEncryptionData::handleQueryKeys(const QHash<QString, QHash<QStrin
}
}
if (!selfSigningKey.isEmpty() && !device.signatures[user]["ed25519:"_ls % selfSigningKey].isEmpty()) {
if (ed25519VerifySignature(selfSigningKey, toJson(static_cast<DeviceKeys>(device)), device.signatures[user]["ed25519:"_ls % selfSigningKey])) {
if (ed25519VerifySignature(selfSigningKey, toJson(static_cast<const DeviceKeys&>(device)), device.signatures[user]["ed25519:"_ls % selfSigningKey])) {
selfVerifiedDevices[user][device.deviceId] = true;
emit q->sessionVerified(user, device.deviceId);
} else {
Expand Down

0 comments on commit 8479be9

Please sign in to comment.