aboutsummaryrefslogtreecommitdiff
path: root/jobs/setroomstatejob.h
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/setroomstatejob.h')
-rw-r--r--jobs/setroomstatejob.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/jobs/setroomstatejob.h b/jobs/setroomstatejob.h
index 1c72f31c..ddc271b9 100644
--- a/jobs/setroomstatejob.h
+++ b/jobs/setroomstatejob.h
@@ -32,9 +32,9 @@ namespace QMatrixClient
* with a state key.
*/
template <typename EvT>
- SetRoomStateJob(const ConnectionData* connection, const QString& roomId,
- const EvT* event, const QString& stateKey)
- : BaseJob(connection, HttpVerb::Put, "SetRoomStateJob",
+ SetRoomStateJob(const QString& roomId, const QString& stateKey,
+ const EvT* event)
+ : BaseJob(HttpVerb::Put, "SetRoomStateJob",
QStringLiteral("_matrix/client/r0/rooms/%1/state/%2/%3")
.arg(roomId, EvT::TypeId, stateKey),
Query(),
@@ -45,9 +45,8 @@ namespace QMatrixClient
* without a state key.
*/
template <typename EvT>
- SetRoomStateJob(const ConnectionData* connection, const QString& roomId,
- const EvT* event)
- : BaseJob(connection, HttpVerb::Put, "SetRoomStateJob",
+ SetRoomStateJob(const QString& roomId, const EvT* event)
+ : BaseJob(HttpVerb::Put, "SetRoomStateJob",
QStringLiteral("_matrix/client/r0/rooms/%1/state/%2")
.arg(roomId, EvT::TypeId),
Query(),