From 8d14a058c67a857821c4d7c3c9c7811595828ef5 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 2 Sep 2020 19:38:07 +0200 Subject: [PATCH] Fix endless pagination, when old history is inaccessible --- src/timeline/EventStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),