Skip to content
Snippets Groups Projects
Commit ff54ce93 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix rooms with a lot of reactions not paginating correctly

parent e045e3eb
No related branches found
No related tags found
No related merge requests found
......@@ -469,7 +469,6 @@ TimelineModel::fetchMore(const QModelIndex &)
mtx::errors::to_string(err->matrix_error.errcode),
err->matrix_error.error,
err->parse_error);
emit oldMessagesRetrieved(std::move(res));
setPaginationInProgress(false);
return;
}
......@@ -701,6 +700,11 @@ TimelineModel::addBackwardsEvents(const mtx::responses::Messages &msgs)
}
prev_batch_token_ = QString::fromStdString(msgs.end);
if (ids.empty() && !msgs.chunk.empty()) {
// no visible events fetched, prevent loading from stopping
fetchMore(QModelIndex());
}
}
QString
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment