Get rid of an edge case, that can break pagination

This commit is contained in:
Nicolas Werner 2023-04-04 19:40:37 +02:00
parent c1c02b4aae
commit e21100cf17
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -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) {