From 9d16f2e8b4331323d7dfd1d11224c4fcebf079f4 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 16 Jul 2023 19:25:37 +0200 Subject: [PATCH] Fix verification error codes --- src/encryption/DeviceVerificationFlow.h | 3 +++ src/encryption/SelfVerificationStatus.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/encryption/DeviceVerificationFlow.h b/src/encryption/DeviceVerificationFlow.h index 48de14e5..50818883 100644 --- a/src/encryption/DeviceVerificationFlow.h +++ b/src/encryption/DeviceVerificationFlow.h @@ -63,6 +63,9 @@ using sas_ptr = std::unique_ptr; class DeviceVerificationFlow final : public QObject { Q_OBJECT + QML_ELEMENT + QML_UNCREATABLE("") + Q_PROPERTY(QString state READ state NOTIFY stateChanged) Q_PROPERTY(Error error READ error NOTIFY errorChanged) Q_PROPERTY(QString userId READ getUserId CONSTANT) diff --git a/src/encryption/SelfVerificationStatus.cpp b/src/encryption/SelfVerificationStatus.cpp index d9d3d787..e54cbc2d 100644 --- a/src/encryption/SelfVerificationStatus.cpp +++ b/src/encryption/SelfVerificationStatus.cpp @@ -246,6 +246,8 @@ SelfVerificationStatus::verifyMasterKey() if (!devices.empty()) ChatPage::instance()->timelineManager()->verificationManager()->verifyOneOfDevices( QString::fromStdString(this_user), std::move(devices)); + else + nhlog::db()->info("No devices to verify"); } void