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