Skip to content

Commit

Permalink
Fix building against the latest libQuotient
Browse files Browse the repository at this point in the history
  • Loading branch information
redstrate committed Nov 9, 2024
1 parent 1f54ea2 commit a5f3865
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions launcher/src/syncmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <KSharedConfig>
#include <QCoreApplication>
#include <QCoro>
#include <QTemporaryFile>

const auto roomType = QStringLiteral("zone.xiv.astra-sync");
const auto syncEventType = QStringLiteral("zone.xiv.astra.sync");
Expand Down Expand Up @@ -179,7 +178,7 @@ QCoro::Task<void> SyncManager::findRoom()
{},
{},
QJsonObject{{QStringLiteral("type"), roomType}});
co_await qCoro(job, &BaseJob::finished);
co_await qCoro(job.get(), &BaseJob::finished);

setRoomId(job->roomId());
qCDebug(ASTRA_LOG) << "Created sync room at" << job->roomId();
Expand Down Expand Up @@ -234,7 +233,7 @@ QCoro::Task<bool> SyncManager::uploadCharacterArchive(const QString &id, const Q
Q_ASSERT(m_currentRoom);

auto uploadFileJob = connection()->uploadFile(path);
co_await qCoro(uploadFileJob, &BaseJob::finished);
co_await qCoro(uploadFileJob.get(), &BaseJob::finished);

// TODO: error handling

Expand Down

0 comments on commit a5f3865

Please sign in to comment.