From 07a4e38ed8998bfc8c4d2f58759043202f7d21cd Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 30 Jan 2018 13:40:48 -0700 Subject: [PATCH] Increase pagination retry timeout --- src/timeline/TimelineView.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/timeline/TimelineView.cc b/src/timeline/TimelineView.cc index 1d5e76bc..253a4267 100644 --- a/src/timeline/TimelineView.cc +++ b/src/timeline/TimelineView.cc @@ -88,16 +88,12 @@ void TimelineView::fetchHistory() { if (!isScrollbarActivated() && !isTimelineFinished) { - if (!isVisible()) { - // Check again later if the timeline became visible. - // TODO: Use a backoff strategy. - paginationTimer_->start(3000); + if (!isVisible()) return; - } isPaginationInProgress_ = true; client_->messages(room_id_, prev_batch_token_); - paginationTimer_->start(1500); + paginationTimer_->start(5000); return; }