Get rid of an edge case, that can break pagination

new-timelineevents
Nicolas Werner 2 years ago
parent c1c02b4aae
commit e21100cf17
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 3
      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) {

Loading…
Cancel
Save