From a2d3990f9021589acb066cb4a67fb960510f2f6f Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 14 May 2022 01:56:53 +0200 Subject: [PATCH] Fix stopping the fallback removal timer starter --- src/ChatPage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, 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