summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-06-15 15:36:58 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-06-15 15:36:58 +0200
commit3eafd4396e57f15bda517e090b81623c542bd452 (patch)
treea2bd42f29a95d8e9d20de6e65bf324f363428565 /src/timeline/TimelineModel.cpp
parentFix edits not updating in replies (diff)
downloadnheko-3eafd4396e57f15bda517e090b81623c542bd452.tar.xz
Fix pins not refreshing after being loaded
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index 578d63b7..53559644 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -398,6 +398,7 @@ TimelineModel::TimelineModel(TimelineViewManager *manager, QString room_id, QObj
           "data changed {} to {}", events.size() - to - 1, events.size() - from - 1);
         emit dataChanged(index(events.size() - to - 1, 0), index(events.size() - from - 1, 0));
     });
+    connect(&events, &EventStore::pinsChanged, this, &TimelineModel::pinnedMessagesChanged);
 
     connect(&events, &EventStore::beginInsertRows, this, [this](int from, int to) {
         int first = events.size() - to;