aboutsummaryrefslogtreecommitdiff
path: root/jobs/postmessagejob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/postmessagejob.cpp')
-rw-r--r--jobs/postmessagejob.cpp6
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)