@ -110,6 +110,7 @@ private:
bool isPaginationInProgress_ = false;
bool isInitialized = false;
bool isTimelineFinished = false;
bool isInitialSync = true;
const int SCROLL_BAR_GAP = 300;
@ -219,7 +219,10 @@ int TimelineView::addEvents(const Timeline &timeline)
{
int message_count = 0;
prev_batch_token_ = timeline.previousBatch();
if (isInitialSync) {
isInitialSync = false;
}
for (const auto &event : timeline.events()) {
TimelineItem *item = parseMessageEvent(event.toObject(), TimelineDirection::Bottom);