aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/third_party_membership.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-09 22:53:29 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-09 22:53:29 +0900
commit46801080846d58ab1528e921bebcb14e651f7956 (patch)
tree13fadd0e947a184bc7cef77c5c0867bf404bfe0b /lib/csapi/third_party_membership.cpp
parent6767cb8eccea7b74531f59f165a28afa0bec61f4 (diff)
downloadlibquotient-46801080846d58ab1528e921bebcb14e651f7956.tar.gz
libquotient-46801080846d58ab1528e921bebcb14e651f7956.zip
csapi: Now really fix passing query parameters
Also: GetContentThumbnailJob (again) requires width and height.
Diffstat (limited to 'lib/csapi/third_party_membership.cpp')
-rw-r--r--lib/csapi/third_party_membership.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/csapi/third_party_membership.cpp b/lib/csapi/third_party_membership.cpp
index 4cdad48b..2372f9d7 100644
--- a/lib/csapi/third_party_membership.cpp
+++ b/lib/csapi/third_party_membership.cpp
@@ -17,9 +17,9 @@ InviteBy3PIDJob::InviteBy3PIDJob(const QString& roomId, const QString& idServer,
basePath % "/rooms/" % roomId % "/invite")
{
QJsonObject _data;
- addToJson<>(_data, "id_server", idServer);
- addToJson<>(_data, "medium", medium);
- addToJson<>(_data, "address", address);
+ addParam<>(_data, "id_server", idServer);
+ addParam<>(_data, "medium", medium);
+ addParam<>(_data, "address", address);
setRequestData(_data);
}