diff options
Diffstat (limited to 'lib/csapi/inviting.cpp')
-rw-r--r-- | lib/csapi/inviting.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/lib/csapi/inviting.cpp b/lib/csapi/inviting.cpp index 7dc33b18..01620f9e 100644 --- a/lib/csapi/inviting.cpp +++ b/lib/csapi/inviting.cpp @@ -4,22 +4,16 @@ #include "inviting.h" -#include "converters.h" - #include <QtCore/QStringBuilder> -using namespace QMatrixClient; - -static const auto basePath = QStringLiteral("/_matrix/client/r0"); - -static const auto InviteUserJobName = QStringLiteral("InviteUserJob"); +using namespace Quotient; InviteUserJob::InviteUserJob(const QString& roomId, const QString& userId) - : BaseJob(HttpVerb::Post, InviteUserJobName, - basePath % "/rooms/" % roomId % "/invite") + : BaseJob(HttpVerb::Post, QStringLiteral("InviteUserJob"), + QStringLiteral("/_matrix/client/r0") % "/rooms/" % roomId + % "/invite") { QJsonObject _data; addParam<>(_data, QStringLiteral("user_id"), userId); - setRequestData(_data); + setRequestData(std::move(_data)); } - |