From 2dd85770cbfd6d9c7506757f25765c05ef74987d Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Thu, 16 Jun 2022 13:29:02 +0200 Subject: Regenerate API files upon the previous commit --- lib/csapi/create_room.cpp | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'lib/csapi/create_room.cpp') diff --git a/lib/csapi/create_room.cpp b/lib/csapi/create_room.cpp index 834d8c13..afae80af 100644 --- a/lib/csapi/create_room.cpp +++ b/lib/csapi/create_room.cpp @@ -18,22 +18,24 @@ CreateRoomJob::CreateRoomJob(const QString& visibility, : BaseJob(HttpVerb::Post, QStringLiteral("CreateRoomJob"), makePath("/_matrix/client/v3", "/createRoom")) { - QJsonObject _data; - addParam(_data, QStringLiteral("visibility"), visibility); - addParam(_data, QStringLiteral("room_alias_name"), + QJsonObject _dataJson; + addParam(_dataJson, QStringLiteral("visibility"), visibility); + addParam(_dataJson, QStringLiteral("room_alias_name"), roomAliasName); - addParam(_data, QStringLiteral("name"), name); - addParam(_data, QStringLiteral("topic"), topic); - addParam(_data, QStringLiteral("invite"), invite); - addParam(_data, QStringLiteral("invite_3pid"), invite3pid); - addParam(_data, QStringLiteral("room_version"), roomVersion); - addParam(_data, QStringLiteral("creation_content"), + addParam(_dataJson, QStringLiteral("name"), name); + addParam(_dataJson, QStringLiteral("topic"), topic); + addParam(_dataJson, QStringLiteral("invite"), invite); + addParam(_dataJson, QStringLiteral("invite_3pid"), invite3pid); + addParam(_dataJson, QStringLiteral("room_version"), roomVersion); + addParam(_dataJson, QStringLiteral("creation_content"), creationContent); - addParam(_data, QStringLiteral("initial_state"), initialState); - addParam(_data, QStringLiteral("preset"), preset); - addParam(_data, QStringLiteral("is_direct"), isDirect); - addParam(_data, QStringLiteral("power_level_content_override"), + addParam(_dataJson, QStringLiteral("initial_state"), + initialState); + addParam(_dataJson, QStringLiteral("preset"), preset); + addParam(_dataJson, QStringLiteral("is_direct"), isDirect); + addParam(_dataJson, + QStringLiteral("power_level_content_override"), powerLevelContentOverride); - setRequestData(std::move(_data)); + setRequestData({ _dataJson }); addExpectedKey("room_id"); } -- cgit v1.2.3