summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-12-18 15:20:11 +0100
committerGitHub <noreply@github.com>2020-12-18 15:20:11 +0100
commit45701b0896c9e2ac8670feff3e46ba5932673025 (patch)
tree8a833c4a99a08bc92d160b14ebdd88fef8eb9298 /src/timeline
parentTranslated using Weblate (Finnish) (diff)
parentFix unused capture (diff)
downloadnheko-45701b0896c9e2ac8670feff3e46ba5932673025.tar.xz
Merge pull request #355 from Nheko-Reborn/ssss
Cross-signing with self and user signing keys
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/TimelineViewManager.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/timeline/TimelineViewManager.h b/src/timeline/TimelineViewManager.h

index b9febf75..f346acf8 100644 --- a/src/timeline/TimelineViewManager.h +++ b/src/timeline/TimelineViewManager.h
@@ -51,7 +51,12 @@ public: void sync(const mtx::responses::Rooms &rooms); void addRoom(const QString &room_id); - void clearAll() { models.clear(); } + void clearAll() + { + timeline_ = nullptr; + emit activeTimelineChanged(nullptr); + models.clear(); + } Q_INVOKABLE TimelineModel *activeTimeline() const { return timeline_; } Q_INVOKABLE bool isInitialSync() const { return isInitialSync_; }