diff options
Diffstat (limited to 'jobs/postreceiptjob.cpp')
-rw-r--r-- | jobs/postreceiptjob.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/jobs/postreceiptjob.cpp b/jobs/postreceiptjob.cpp index f99b6869..d0c82b4f 100644 --- a/jobs/postreceiptjob.cpp +++ b/jobs/postreceiptjob.cpp @@ -34,19 +34,13 @@ class PostReceiptJob::Private }; PostReceiptJob::PostReceiptJob(ConnectionData* connection, QString roomId, QString eventId) - : BaseJob(connection, JobHttpType::PostJob, "PostReceiptJob") + : BaseJob(connection, JobHttpType::PostJob, "PostReceiptJob", + QString("/_matrix/client/r0/rooms/%1/receipt/m.read/%2").arg(roomId, eventId)) , d(new Private) { - d->roomId = roomId; - d->eventId = eventId; } PostReceiptJob::~PostReceiptJob() { delete d; } - -QString PostReceiptJob::apiPath() const -{ - return QString("/_matrix/client/r0/rooms/%1/receipt/m.read/%2").arg(d->roomId).arg(d->eventId); -} |