diff options
Diffstat (limited to 'jobs/roommessagesjob.cpp')
-rw-r--r-- | jobs/roommessagesjob.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jobs/roommessagesjob.cpp b/jobs/roommessagesjob.cpp index 5a97cc23..f1943d2c 100644 --- a/jobs/roommessagesjob.cpp +++ b/jobs/roommessagesjob.cpp @@ -40,7 +40,7 @@ class RoomMessagesJob::Private }; RoomMessagesJob::RoomMessagesJob(ConnectionData* data, Room* room, QString from, FetchDirectory dir, int limit) - : BaseJob(data, JobHttpType::GetJob) + : BaseJob(data, JobHttpType::GetJob, "RoomMessagesJob") { d = new Private(); d->room = room; @@ -64,12 +64,12 @@ QString RoomMessagesJob::end() return d->end; } -QString RoomMessagesJob::apiPath() +QString RoomMessagesJob::apiPath() const { return QString("/_matrix/client/r0/rooms/%1/messages").arg(d->room->id()); } -QUrlQuery RoomMessagesJob::query() +QUrlQuery RoomMessagesJob::query() const { QUrlQuery query; query.addQueryItem("from", d->from); |