diff options
-rw-r--r-- | connection.cpp | 2 | ||||
-rw-r--r-- | jobs/syncjob.cpp | 4 | ||||
-rw-r--r-- | jobs/syncjob.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/connection.cpp b/connection.cpp index 7ff5a8b0..e0274fd7 100644 --- a/connection.cpp +++ b/connection.cpp @@ -189,7 +189,7 @@ void Connection::sync(int timeout) SyncJob* Connection::Private::startSyncJob(const QString& filter, int timeout) { - syncJob = new SyncJob(data, filter, timeout, data->lastEvent()); + syncJob = new SyncJob(data, data->lastEvent(), filter, timeout); syncJob->start(); return syncJob; diff --git a/jobs/syncjob.cpp b/jobs/syncjob.cpp index e8ee25df..521f829e 100644 --- a/jobs/syncjob.cpp +++ b/jobs/syncjob.cpp @@ -38,8 +38,8 @@ class SyncJob::Private static size_t jobId = 0; -SyncJob::SyncJob(ConnectionData* connection, QString filter, int timeout, - QString since, QString presence) +SyncJob::SyncJob(ConnectionData* connection, + QString since, QString filter, int timeout, QString presence) : BaseJob(connection, JobHttpType::GetJob, QString("SyncJob-%1").arg(++jobId), "_matrix/client/r0/sync") , d(new Private) diff --git a/jobs/syncjob.h b/jobs/syncjob.h index 36aaf504..e7b23d16 100644 --- a/jobs/syncjob.h +++ b/jobs/syncjob.h @@ -99,8 +99,8 @@ namespace QMatrixClient class SyncJob: public BaseJob { public: - SyncJob(ConnectionData* connection, QString filter, int timeout, - QString since = {}, QString presence = {}); + SyncJob(ConnectionData* connection, QString since = {}, QString filter = {}, + int timeout = -1, QString presence = {}); virtual ~SyncJob(); SyncData& roomData(); |