diff options
Diffstat (limited to 'lib/csapi/room_send.cpp')
-rw-r--r-- | lib/csapi/room_send.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csapi/room_send.cpp b/lib/csapi/room_send.cpp index 93ab04d2..2319496f 100644 --- a/lib/csapi/room_send.cpp +++ b/lib/csapi/room_send.cpp @@ -12,6 +12,6 @@ SendMessageJob::SendMessageJob(const QString& roomId, const QString& eventType, makePath("/_matrix/client/v3", "/rooms/", roomId, "/send/", eventType, "/", txnId)) { - setRequestData(RequestData(toJson(body))); + setRequestData({ toJson(body) }); addExpectedKey("event_id"); } |