summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorkamathmanu <manuriddle@gmail.com>2021-08-07 17:13:18 -0400
committerkamathmanu <manuriddle@gmail.com>2021-08-07 17:13:18 -0400
commit14f8f4d61b45f0f2fd304a87f291a83781142615 (patch)
treeb5b88a59fc8ab206c6ab9d54f97980b92a6a0121 /src
parentImprove window closing (diff)
downloadnheko-14f8f4d61b45f0f2fd304a87f291a83781142615.tar.xz
Fix Duplicate fetched chunk
Diffstat (limited to 'src')
-rw-r--r--src/RoomDirectoryModel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/RoomDirectoryModel.cpp b/src/RoomDirectoryModel.cpp

index 6cb7a4fb..06bd9d8a 100644 --- a/src/RoomDirectoryModel.cpp +++ b/src/RoomDirectoryModel.cpp
@@ -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; }