aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/third_party_membership.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/third_party_membership.cpp')
-rw-r--r--lib/csapi/third_party_membership.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/csapi/third_party_membership.cpp b/lib/csapi/third_party_membership.cpp
index 2372f9d7..c1683338 100644
--- a/lib/csapi/third_party_membership.cpp
+++ b/lib/csapi/third_party_membership.cpp
@@ -12,14 +12,16 @@ using namespace QMatrixClient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
+static const auto InviteBy3PIDJobName = QStringLiteral("InviteBy3PIDJob");
+
InviteBy3PIDJob::InviteBy3PIDJob(const QString& roomId, const QString& idServer, const QString& medium, const QString& address)
- : BaseJob(HttpVerb::Post, "InviteBy3PIDJob",
+ : BaseJob(HttpVerb::Post, InviteBy3PIDJobName,
basePath % "/rooms/" % roomId % "/invite")
{
QJsonObject _data;
- addParam<>(_data, "id_server", idServer);
- addParam<>(_data, "medium", medium);
- addParam<>(_data, "address", address);
+ addParam<>(_data, QStringLiteral("id_server"), idServer);
+ addParam<>(_data, QStringLiteral("medium"), medium);
+ addParam<>(_data, QStringLiteral("address"), address);
setRequestData(_data);
}