summary refs log tree commit diff
path: root/src/DeviceVerificationFlow.cpp
diff options
context:
space:
mode:
authorCH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com>2020-07-06 21:32:21 +0530
committerCH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com>2020-07-30 22:10:27 +0530
commita2979c2df1b2059e2e8a969f5c1a3a804bd2550c (patch)
tree7d43749b336ce7a1694da22b4b25464d0907a306 /src/DeviceVerificationFlow.cpp
parentAdding icons to UserProfile (diff)
downloadnheko-a2979c2df1b2059e2e8a969f5c1a3a804bd2550c.tar.xz
Updating keys of outdated encrypted users
Diffstat (limited to 'src/DeviceVerificationFlow.cpp')
-rw-r--r--src/DeviceVerificationFlow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DeviceVerificationFlow.cpp b/src/DeviceVerificationFlow.cpp

index 7829c41d..0122e691 100644 --- a/src/DeviceVerificationFlow.cpp +++ b/src/DeviceVerificationFlow.cpp
@@ -477,7 +477,7 @@ DeviceVerificationFlow::cancelVerification(DeviceVerificationFlow::Error error_c } else { cache::setVerifiedCache( this->userId.toStdString(), - DeviceVerifiedCache{{}, {this->deviceId.toStdString()}}); + DeviceVerifiedCache{{}, {}, {this->deviceId.toStdString()}}); } this->deleteLater(); }); @@ -564,8 +564,9 @@ DeviceVerificationFlow::acceptDevice() } cache::setVerifiedCache(this->userId.toStdString(), verified_cache.value()); } else { - cache::setVerifiedCache(this->userId.toStdString(), - DeviceVerifiedCache{{this->deviceId.toStdString()}, {}}); + cache::setVerifiedCache( + this->userId.toStdString(), + DeviceVerifiedCache{{this->deviceId.toStdString()}, {}, {}}); } emit deviceVerified(); @@ -616,5 +617,4 @@ DeviceVerificationFlow::unverify() } emit refreshProfile(); - this->deleteLater(); }