summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-09-18 00:21:14 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-10-09 05:01:53 +0200
commitad1e6c82986fd92d34fdc3d7f27a152a80d05e81 (patch)
tree5d26eacf734407d15f473ffe2e8445ed65ed1abd /src/Cache.cpp
parentMerge pull request #752 from Thulinma/devicelistEdits (diff)
downloadnheko-ad1e6c82986fd92d34fdc3d7f27a152a80d05e81.tar.xz
Support bootstrapping crosssigning
Showing the bootstrap state and showing there are unverified devices is
still missing.
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r--src/Cache.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp

index ee0ca0c2..ea3dd525 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp
@@ -201,6 +201,18 @@ Cache::Cache(const QString &userId, QObject *parent) { setup(); connect(this, &Cache::userKeysUpdate, this, &Cache::updateUserKeys, Qt::QueuedConnection); + connect( + this, + &Cache::verificationStatusChanged, + this, + [this](const std::string &u) { + if (u == localUserId_.toStdString()) { + auto status = verificationStatus(u); + if (status.unverified_device_count || !status.user_verified) + emit selfUnverified(); + } + }, + Qt::QueuedConnection); } void