diff options
author | DeepBlueV7.X <nicolas.werner@hotmail.de> | 2021-10-09 23:35:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-09 23:35:09 +0000 |
commit | 281d764aa3ce0ea55536a6356e1ed3511aaff6f4 (patch) | |
tree | aa8c88bdf2788c84053e7009adafea4c1b4a4c75 /src/Cache.cpp | |
parent | Merge pull request #743 from LorenDB/qmlLogout (diff) | |
parent | Support bootstrapping crosssigning (diff) | |
download | nheko-281d764aa3ce0ea55536a6356e1ed3511aaff6f4.tar.xz |
Merge pull request #755 from Nheko-Reborn/bootstrapping
Support bootstrapping crosssigning
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r-- | src/Cache.cpp | 12 |
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 |