mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Fix stopping the fallback removal timer starter
This commit is contained in:
parent
0a65019242
commit
a2d3990f90
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue