summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-09-02 19:38:07 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-09-02 19:38:07 +0200
commit8d14a058c67a857821c4d7c3c9c7811595828ef5 (patch)
tree78a2b3acc87b855e555a49757da3e289688892c6 /src
parentMerge pull request #267 from Lurkki14/master (diff)
downloadnheko-8d14a058c67a857821c4d7c3c9c7811595828ef5.tar.xz
Fix endless pagination, when old history is inaccessible
Diffstat (limited to 'src')
-rw-r--r--src/timeline/EventStore.cpp2
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),