summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-07-16 19:25:37 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-07-16 19:25:37 +0200
commit9d16f2e8b4331323d7dfd1d11224c4fcebf079f4 (patch)
tree9ec9351bc10956d110290b742c5690937454ecea /src
parentUpdate some translations (diff)
downloadnheko-9d16f2e8b4331323d7dfd1d11224c4fcebf079f4.tar.xz
Fix verification error codes
Diffstat (limited to 'src')
-rw-r--r--src/encryption/DeviceVerificationFlow.h3
-rw-r--r--src/encryption/SelfVerificationStatus.cpp2
2 files changed, 5 insertions, 0 deletions
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<mtx::crypto::SAS>;
 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