summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-04-29 10:23:50 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-04-29 10:23:50 +0200
commitdbf23fafbfe0e6ba4f49ee447d481e2c9aa49985 (patch)
tree26497ea72ce3414cea2d30ba3ab56584c076c095 /src/timeline
parentUpdate appdata (diff)
downloadnheko-dbf23fafbfe0e6ba4f49ee447d481e2c9aa49985.tar.xz
Make pagination logic slightly more robust
Diffstat (limited to 'src/timeline')
-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 6104ad00..883d384c 100644 --- a/src/timeline/EventStore.cpp +++ b/src/timeline/EventStore.cpp
@@ -61,7 +61,7 @@ EventStore::EventStore(std::string room_id, QObject *) &EventStore::oldMessagesRetrieved, this, [this](const mtx::responses::Messages &res) { - if (cache::client()->previousBatchToken(room_id_) == res.end) { + if (res.end.empty() || cache::client()->previousBatchToken(room_id_) == res.end) { noMoreMessages = true; emit fetchedMore(); return;