mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix verification error codes
This commit is contained in:
parent
4bd6aeab52
commit
9d16f2e8b4
2 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue