mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
Fix endless pagination, when old history is inaccessible
This commit is contained in:
parent
eb554e8266
commit
8d14a058c6
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ EventStore::EventStore(std::string room_id, QObject *)
|
|||
[this](const mtx::responses::Messages &res) {
|
||||
//
|
||||
uint64_t newFirst = cache::client()->saveOldMessages(room_id_, res);
|
||||
if (newFirst == first)
|
||||
if (newFirst == first && !res.chunk.empty())
|
||||
fetchMore();
|
||||
else {
|
||||
emit beginInsertRows(toExternalIdx(newFirst),
|
||||
|
|
Loading…
Reference in a new issue