diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-03-09 13:13:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-09 13:13:48 +0900 |
commit | af8f95fa0446bf377321d9f285b0e55c08fd91da (patch) | |
tree | cdd07d0df71e2f7baa87d1be73fb4e3c3473d3eb /jobs/postmessagejob.cpp | |
parent | ba5ca3c88a20926f2be06872f530d9da12d5a062 (diff) | |
parent | 3524342faacd12b00fa4c3a3ebe6a68782975eac (diff) | |
download | libquotient-af8f95fa0446bf377321d9f285b0e55c08fd91da.tar.gz libquotient-af8f95fa0446bf377321d9f285b0e55c08fd91da.zip |
Merge pull request #54 from Fxrh/kitsune-call-server
Connection::callApi + Room::getPreviousMessages(limit)
Diffstat (limited to 'jobs/postmessagejob.cpp')
-rw-r--r-- | jobs/postmessagejob.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jobs/postmessagejob.cpp b/jobs/postmessagejob.cpp index 9903bec6..a835cd9f 100644 --- a/jobs/postmessagejob.cpp +++ b/jobs/postmessagejob.cpp @@ -17,7 +17,6 @@ */ #include "postmessagejob.h" -#include "../room.h" #include "../connectiondata.h" #include <QtNetwork/QNetworkReply> @@ -32,9 +31,10 @@ class PostMessageJob::Private QString eventId; // unused yet }; -PostMessageJob::PostMessageJob(ConnectionData* connection, Room* room, QString type, QString message) +PostMessageJob::PostMessageJob(ConnectionData* connection, QString roomId, + QString type, QString message) : BaseJob(connection, JobHttpType::PostJob, "PostMessageJob", - QString("_matrix/client/r0/rooms/%1/send/m.room.message").arg(room->id()), + QString("_matrix/client/r0/rooms/%1/send/m.room.message").arg(roomId), Query(), Data({ { "msgtype", type }, { "body", message } })) , d(new Private) |