diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-06-23 19:12:38 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-06-23 19:12:38 +0200 |
commit | 0d4315008374d9a4dfb11f934875b1a16670ec74 (patch) | |
tree | 4327eecbf44d79152ac02a37c64bab402b22a8af /lib/csapi/joining.cpp | |
parent | 65e6ecd9711372e1e2afde769967ee46b3920307 (diff) | |
download | libquotient-0d4315008374d9a4dfb11f934875b1a16670ec74.tar.gz libquotient-0d4315008374d9a4dfb11f934875b1a16670ec74.zip |
Re-generate API files
Diffstat (limited to 'lib/csapi/joining.cpp')
-rw-r--r-- | lib/csapi/joining.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/csapi/joining.cpp b/lib/csapi/joining.cpp index 4761e949..998d0b42 100644 --- a/lib/csapi/joining.cpp +++ b/lib/csapi/joining.cpp @@ -9,13 +9,15 @@ using namespace Quotient; JoinRoomByIdJob::JoinRoomByIdJob( - const QString& roomId, const Omittable<ThirdPartySigned>& thirdPartySigned) + const QString& roomId, const Omittable<ThirdPartySigned>& thirdPartySigned, + const QString& reason) : BaseJob(HttpVerb::Post, QStringLiteral("JoinRoomByIdJob"), QStringLiteral("/_matrix/client/r0") % "/rooms/" % roomId % "/join") { QJsonObject _data; addParam<IfNotEmpty>(_data, QStringLiteral("third_party_signed"), thirdPartySigned); + addParam<IfNotEmpty>(_data, QStringLiteral("reason"), reason); setRequestData(std::move(_data)); addExpectedKey("room_id"); } @@ -29,7 +31,8 @@ auto queryToJoinRoom(const QStringList& serverName) JoinRoomJob::JoinRoomJob(const QString& roomIdOrAlias, const QStringList& serverName, - const Omittable<ThirdPartySigned>& thirdPartySigned) + const Omittable<ThirdPartySigned>& thirdPartySigned, + const QString& reason) : BaseJob(HttpVerb::Post, QStringLiteral("JoinRoomJob"), QStringLiteral("/_matrix/client/r0") % "/join/" % roomIdOrAlias, queryToJoinRoom(serverName)) @@ -37,6 +40,7 @@ JoinRoomJob::JoinRoomJob(const QString& roomIdOrAlias, QJsonObject _data; addParam<IfNotEmpty>(_data, QStringLiteral("third_party_signed"), thirdPartySigned); + addParam<IfNotEmpty>(_data, QStringLiteral("reason"), reason); setRequestData(std::move(_data)); addExpectedKey("room_id"); } |