Skip to content
Snippets Groups Projects
Verified Commit a2d3990f authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix stopping the fallback removal timer starter

parent 0a650192
No related branches found
No related tags found
No related merge requests found
Pipeline #3150 failed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment