diff options
Diffstat (limited to 'lib/jobs')
-rw-r--r-- | lib/jobs/sendeventjob.h | 2 | ||||
-rw-r--r-- | lib/jobs/setroomstatejob.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/jobs/sendeventjob.h b/lib/jobs/sendeventjob.h index 3a11eb6a..a3e9a291 100644 --- a/lib/jobs/sendeventjob.h +++ b/lib/jobs/sendeventjob.h @@ -32,7 +32,7 @@ namespace QMatrixClient SendEventJob(const QString& roomId, const EvT& event) : BaseJob(HttpVerb::Put, QStringLiteral("SendEventJob"), QStringLiteral("_matrix/client/r0/rooms/%1/send/%2/") - .arg(roomId, EvT::TypeId), // See also beforeStart() + .arg(roomId, EvT::typeId()), // See also beforeStart() Query(), Data(event.toJson())) { } diff --git a/lib/jobs/setroomstatejob.h b/lib/jobs/setroomstatejob.h index b7e6d4a1..36047667 100644 --- a/lib/jobs/setroomstatejob.h +++ b/lib/jobs/setroomstatejob.h @@ -36,7 +36,7 @@ namespace QMatrixClient const EvT& event) : BaseJob(HttpVerb::Put, "SetRoomStateJob", QStringLiteral("_matrix/client/r0/rooms/%1/state/%2/%3") - .arg(roomId, EvT::TypeId, stateKey), + .arg(roomId, EvT::typeId(), stateKey), Query(), Data(event.toJson())) { } @@ -48,7 +48,7 @@ namespace QMatrixClient SetRoomStateJob(const QString& roomId, const EvT& event) : BaseJob(HttpVerb::Put, "SetRoomStateJob", QStringLiteral("_matrix/client/r0/rooms/%1/state/%2") - .arg(roomId, EvT::TypeId), + .arg(roomId, EvT::typeId()), Query(), Data(event.toJson())) { } |