summary refs log tree commit diff
path: root/src/encryption
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-12-13 14:59:55 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-12-13 17:20:34 +0100
commitc67f301f8bb4f26566c442a646fb06d22c611b28 (patch)
tree04212d43f58c02a7e98bba0b56a48a77db4b2bba /src/encryption
parentDon't fail if cache exists (diff)
downloadnheko-c67f301f8bb4f26566c442a646fb06d22c611b28.tar.xz
Work around clazy claiming we connect a lambda
Diffstat (limited to 'src/encryption')
-rw-r--r--src/encryption/SelfVerificationStatus.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/encryption/SelfVerificationStatus.cpp b/src/encryption/SelfVerificationStatus.cpp
index 32e75c4f..b5549ca1 100644
--- a/src/encryption/SelfVerificationStatus.cpp
+++ b/src/encryption/SelfVerificationStatus.cpp
@@ -24,11 +24,12 @@ SelfVerificationStatus::SelfVerificationStatus(QObject *o)
   : QObject(o)
 {
     connect(ChatPage::instance(), &ChatPage::contentLoaded, this, [this] {
+        // We connect INSIDE a lambda, not A lambda...
         connect(cache::client(),
                 &Cache::selfVerificationStatusChanged,
                 this,
                 &SelfVerificationStatus::invalidate,
-                Qt::UniqueConnection);
+                Qt::UniqueConnection); // clazy:exclude=lambda-unique-connection
         cache::client()->markUserKeysOutOfDate({http::client()->user_id().to_string()});
     });