diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-09-02 19:38:07 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-09-02 19:38:07 +0200 |
commit | 8d14a058c67a857821c4d7c3c9c7811595828ef5 (patch) | |
tree | 78a2b3acc87b855e555a49757da3e289688892c6 /src | |
parent | Merge pull request #267 from Lurkki14/master (diff) | |
download | nheko-8d14a058c67a857821c4d7c3c9c7811595828ef5.tar.xz |
Fix endless pagination, when old history is inaccessible
Diffstat (limited to 'src')
-rw-r--r-- | src/timeline/EventStore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp index fca1d31d..20487b28 100644 --- a/src/timeline/EventStore.cpp +++ b/src/timeline/EventStore.cpp @@ -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), |