mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix Duplicate fetched chunk
This commit is contained in:
parent
34ffe054cf
commit
14f8f4d61b
1 changed files with 1 additions and 2 deletions
|
@ -131,7 +131,6 @@ void
|
|||
RoomDirectoryModel::fetchMore(const QModelIndex &)
|
||||
{
|
||||
nhlog::net()->debug("Fetching more rooms from mtxclient...");
|
||||
nhlog::net()->debug("Prev batch: {} | Next batch: {}", prevBatch_, nextBatch_);
|
||||
|
||||
mtx::requests::PublicRooms req;
|
||||
req.limit = limit_;
|
||||
|
@ -183,5 +182,5 @@ RoomDirectoryModel::displayRooms(std::vector<mtx::responses::PublicRoomsChunk> f
|
|||
canFetchMore_ = false;
|
||||
}
|
||||
|
||||
prevBatch_ = std::exchange(nextBatch_, next_batch);
|
||||
prevBatch_ = next_batch;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue