summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-05-14 01:56:53 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-05-14 01:56:53 +0200
commita2d3990f9021589acb066cb4a67fb960510f2f6f (patch)
treeadc7ab5484f000b385aae640a547dc2b044cb91c /src
parentAdd support for fallback keys (diff)
downloadnheko-a2d3990f9021589acb066cb4a67fb960510f2f6f.tar.xz
Fix stopping the fallback removal timer starter
Diffstat (limited to 'src')
-rw-r--r--src/ChatPage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp
index 37605ab9..674a5424 100644
--- a/src/ChatPage.cpp
+++ b/src/ChatPage.cpp
@@ -242,6 +242,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QObject *parent)
       this,
       [this]() {
           QTimer::singleShot(std::chrono::minutes(5), this, &ChatPage::removeOldFallbackKey);
+          disconnect(this, &ChatPage::newSyncResponse, this, &ChatPage::startRemoveFallbackKeyTimer);
       },
       Qt::QueuedConnection);
 
@@ -1067,7 +1068,6 @@ ChatPage::removeOldFallbackKey()
 {
     olm::client()->forget_old_fallback_key();
     olm::mark_keys_as_published();
-    disconnect(this, &ChatPage::newSyncResponse, this, &ChatPage::removeOldFallbackKey);
 }
 
 void