summary refs log tree commit diff
path: root/src/timeline/EventStore.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-04-04 19:40:37 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-04-04 19:40:37 +0200
commite21100cf174468eb6087b3991f7a2c77b68880a5 (patch)
tree6b6ffa81c96aec1f22418fc1fe39b322d1618a87 /src/timeline/EventStore.cpp
parentMake the profile buttons a bit bigger (diff)
downloadnheko-e21100cf174468eb6087b3991f7a2c77b68880a5.tar.xz
Get rid of an edge case, that can break pagination
Diffstat (limited to 'src/timeline/EventStore.cpp')
-rw-r--r--src/timeline/EventStore.cpp3
1 files changed, 1 insertions, 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) {