Increase pagination retry timeout
This commit is contained in:
parent
b1f232bf86
commit
07a4e38ed8
@ -88,16 +88,12 @@ void
|
|||||||
TimelineView::fetchHistory()
|
TimelineView::fetchHistory()
|
||||||
{
|
{
|
||||||
if (!isScrollbarActivated() && !isTimelineFinished) {
|
if (!isScrollbarActivated() && !isTimelineFinished) {
|
||||||
if (!isVisible()) {
|
if (!isVisible())
|
||||||
// Check again later if the timeline became visible.
|
|
||||||
// TODO: Use a backoff strategy.
|
|
||||||
paginationTimer_->start(3000);
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
isPaginationInProgress_ = true;
|
isPaginationInProgress_ = true;
|
||||||
client_->messages(room_id_, prev_batch_token_);
|
client_->messages(room_id_, prev_batch_token_);
|
||||||
paginationTimer_->start(1500);
|
paginationTimer_->start(5000);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user