Update to libQuotient 0.6.

This commit is contained in:
Black
2020-07-25 16:45:48 -07:00
parent c8b75202c0
commit 675ec40a63
3 changed files with 15 additions and 16 deletions

View File

@@ -110,15 +110,14 @@ void PublicRoomListModel::next(int count) {
attempted = true;
if (job->status() == BaseJob::Success) {
auto resp = job->data();
nextBatch = resp.nextBatch;
nextBatch = job->nextBatch();
this->beginInsertRows({}, rooms.count(),
rooms.count() + resp.chunk.count() - 1);
rooms.append(resp.chunk);
rooms.count() + job->chunk().count() - 1);
rooms.append(job->chunk());
this->endInsertRows();
if (resp.nextBatch.isEmpty()) {
if (job->nextBatch().isEmpty()) {
emit hasMoreChanged();
}
}