mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Get rid of an edge case, that can break pagination
This commit is contained in:
parent
c1c02b4aae
commit
e21100cf17
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue