diff options
Diffstat (limited to 'src/TimelineView.cc')
-rw-r--r-- | src/TimelineView.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/TimelineView.cc b/src/TimelineView.cc index 9f80db66..aec519ed 100644 --- a/src/TimelineView.cc +++ b/src/TimelineView.cc @@ -219,7 +219,10 @@ int TimelineView::addEvents(const Timeline &timeline) { int message_count = 0; - prev_batch_token_ = timeline.previousBatch(); + if (isInitialSync) { + prev_batch_token_ = timeline.previousBatch(); + isInitialSync = false; + } for (const auto &event : timeline.events()) { TimelineItem *item = parseMessageEvent(event.toObject(), TimelineDirection::Bottom); |