Get rid of an edge case, that can break pagination
This commit is contained in:
parent
c1c02b4aae
commit
e21100cf17
@ -928,8 +928,7 @@ EventStore::fetchMore()
|
|||||||
if (cache::client()->previousBatchToken(room_id_) != opts.from) {
|
if (cache::client()->previousBatchToken(room_id_) != opts.from) {
|
||||||
nhlog::net()->warn("Cache cleared while fetching more messages, dropping "
|
nhlog::net()->warn("Cache cleared while fetching more messages, dropping "
|
||||||
"/messages response");
|
"/messages response");
|
||||||
if (!opts.to.empty())
|
emit fetchedMore();
|
||||||
emit fetchedMore();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (err) {
|
if (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user