1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-06-08 06:57:46 +00:00

Fix building against the latest libQuotient

This commit is contained in:
Joshua Goins 2024-11-09 14:21:26 -05:00
parent 1f54ea2e8d
commit a5f3865839

View file

@ -17,7 +17,6 @@
#include <KSharedConfig> #include <KSharedConfig>
#include <QCoreApplication> #include <QCoreApplication>
#include <QCoro> #include <QCoro>
#include <QTemporaryFile>
const auto roomType = QStringLiteral("zone.xiv.astra-sync"); const auto roomType = QStringLiteral("zone.xiv.astra-sync");
const auto syncEventType = QStringLiteral("zone.xiv.astra.sync"); const auto syncEventType = QStringLiteral("zone.xiv.astra.sync");
@ -179,7 +178,7 @@ QCoro::Task<void> SyncManager::findRoom()
{}, {},
{}, {},
QJsonObject{{QStringLiteral("type"), roomType}}); QJsonObject{{QStringLiteral("type"), roomType}});
co_await qCoro(job, &BaseJob::finished); co_await qCoro(job.get(), &BaseJob::finished);
setRoomId(job->roomId()); setRoomId(job->roomId());
qCDebug(ASTRA_LOG) << "Created sync room at" << job->roomId(); qCDebug(ASTRA_LOG) << "Created sync room at" << job->roomId();
@ -234,7 +233,7 @@ QCoro::Task<bool> SyncManager::uploadCharacterArchive(const QString &id, const Q
Q_ASSERT(m_currentRoom); Q_ASSERT(m_currentRoom);
auto uploadFileJob = connection()->uploadFile(path); auto uploadFileJob = connection()->uploadFile(path);
co_await qCoro(uploadFileJob, &BaseJob::finished); co_await qCoro(uploadFileJob.get(), &BaseJob::finished);
// TODO: error handling // TODO: error handling