From e21100cf174468eb6087b3991f7a2c77b68880a5 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 4 Apr 2023 19:40:37 +0200 Subject: [PATCH] Get rid of an edge case, that can break pagination --- src/timeline/EventStore.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp index dd0e920d..5aa105b0 100644 --- a/src/timeline/EventStore.cpp +++ b/src/timeline/EventStore.cpp @@ -928,8 +928,7 @@ EventStore::fetchMore() if (cache::client()->previousBatchToken(room_id_) != opts.from) { nhlog::net()->warn("Cache cleared while fetching more messages, dropping " "/messages response"); - if (!opts.to.empty()) - emit fetchedMore(); + emit fetchedMore(); return; } if (err) {