Fix verification error codes

pull/1531/head
Nicolas Werner 2 years ago
parent 4bd6aeab52
commit 9d16f2e8b4
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 3
      src/encryption/DeviceVerificationFlow.h
  2. 2
      src/encryption/SelfVerificationStatus.cpp

@ -63,6 +63,9 @@ using sas_ptr = std::unique_ptr<mtx::crypto::SAS>;
class DeviceVerificationFlow final : public QObject class DeviceVerificationFlow final : public QObject
{ {
Q_OBJECT Q_OBJECT
QML_ELEMENT
QML_UNCREATABLE("")
Q_PROPERTY(QString state READ state NOTIFY stateChanged) Q_PROPERTY(QString state READ state NOTIFY stateChanged)
Q_PROPERTY(Error error READ error NOTIFY errorChanged) Q_PROPERTY(Error error READ error NOTIFY errorChanged)
Q_PROPERTY(QString userId READ getUserId CONSTANT) Q_PROPERTY(QString userId READ getUserId CONSTANT)

@ -246,6 +246,8 @@ SelfVerificationStatus::verifyMasterKey()
if (!devices.empty()) if (!devices.empty())
ChatPage::instance()->timelineManager()->verificationManager()->verifyOneOfDevices( ChatPage::instance()->timelineManager()->verificationManager()->verifyOneOfDevices(
QString::fromStdString(this_user), std::move(devices)); QString::fromStdString(this_user), std::move(devices));
else
nhlog::db()->info("No devices to verify");
} }
void void

Loading…
Cancel
Save