summary refs log tree commit diff
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2020-08-01 14:39:06 -0400
committertrilene <trilene@runbox.com>2020-08-01 14:39:06 -0400
commite527da052bcc33bfa6d4cab7b418098d1bd66fd4 (patch)
treecb3d7f0435c6f81fe2c9261d3b9f764db6452bd6
parentclang-format (diff)
downloadnheko-e527da052bcc33bfa6d4cab7b418098d1bd66fd4.tar.xz
Reset TLVM initial sync flag on logout
-rw-r--r--src/timeline/TimelineViewManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp
index 84be895f..5d0b54c3 100644
--- a/src/timeline/TimelineViewManager.cpp
+++ b/src/timeline/TimelineViewManager.cpp
@@ -139,6 +139,10 @@ TimelineViewManager::TimelineViewManager(QSharedPointer<UserSettings> userSettin
                 &ChatPage::decryptSidebarChanged,
                 this,
                 &TimelineViewManager::updateEncryptedDescriptions);
+        connect(dynamic_cast<ChatPage *>(parent), &ChatPage::loggedOut, this, [this]() {
+                isInitialSync_ = true;
+                emit initialSyncChanged(true);
+        });
 }
 
 void