summary refs log tree commit diff
path: root/src/encryption/DeviceVerificationFlow.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-11-01 22:20:15 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-11-01 22:20:15 +0100
commit2aabe9dcacbef4f753761f6df840da4292561d11 (patch)
tree283b6ee93d7f3c9d4d670e4de08ccfad0bfb0160 /src/encryption/DeviceVerificationFlow.h
parentSome people consider Nheko not an AAAAA title (diff)
downloadnheko-2aabe9dcacbef4f753761f6df840da4292561d11.tar.xz
Prompt user when there are unverified devices
Diffstat (limited to 'src/encryption/DeviceVerificationFlow.h')
-rw-r--r--src/encryption/DeviceVerificationFlow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/encryption/DeviceVerificationFlow.h b/src/encryption/DeviceVerificationFlow.h

index 55713def..537adf31 100644 --- a/src/encryption/DeviceVerificationFlow.h +++ b/src/encryption/DeviceVerificationFlow.h
@@ -69,6 +69,7 @@ class DeviceVerificationFlow : public QObject Q_PROPERTY(std::vector<int> sasList READ getSasList CONSTANT) Q_PROPERTY(bool isDeviceVerification READ isDeviceVerification CONSTANT) Q_PROPERTY(bool isSelfVerification READ isSelfVerification CONSTANT) + Q_PROPERTY(bool isMultiDeviceVerification READ isMultiDeviceVerification CONSTANT) public: enum State @@ -139,6 +140,7 @@ public: return this->type == DeviceVerificationFlow::Type::ToDevice; } bool isSelfVerification() const; + bool isMultiDeviceVerification() const { return deviceIds.size() > 1; } void callback_fn(const UserKeyCache &res, mtx::http::RequestErr err, std::string user_id);