aboutsummaryrefslogtreecommitdiff
path: root/jobs/leaveroomjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/leaveroomjob.cpp')
-rw-r--r--jobs/leaveroomjob.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/jobs/leaveroomjob.cpp b/jobs/leaveroomjob.cpp
index 5557b8e4..f73919ac 100644
--- a/jobs/leaveroomjob.cpp
+++ b/jobs/leaveroomjob.cpp
@@ -18,11 +18,9 @@
#include "leaveroomjob.h"
-#include "../room.h"
-
using namespace QMatrixClient;
-LeaveRoomJob::LeaveRoomJob(const ConnectionData* data, Room* room)
+LeaveRoomJob::LeaveRoomJob(const ConnectionData* data, const QString& roomId)
: BaseJob(data, HttpVerb::Post, "LeaveRoomJob",
- QString("_matrix/client/r0/rooms/%1/leave").arg(room->id()))
+ QStringLiteral("_matrix/client/r0/rooms/%1/leave").arg(roomId))
{ }