aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/registration.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-11 19:42:08 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-11 21:33:54 +0200
commited05d9d589fe3d36bd3714e648016352179afbef (patch)
treeb86c1c9417d1037f02011cc9b651ab3acb3c77cb /lib/csapi/registration.cpp
parent3a2e7f19c97289fb962b1c0ba4439870bbd0f31d (diff)
downloadlibquotient-ed05d9d589fe3d36bd3714e648016352179afbef.tar.gz
libquotient-ed05d9d589fe3d36bd3714e648016352179afbef.zip
Regenerate API files using latest matrix-spec
New: - refresh tokens support (changes in login.* and registration.*; RefreshJob); - GetRelatingEvents[WithRelType[AndEventType]]Job Changed space_hierarchy.*: - childrenState is of type StateEvents now; limit and maxDepth are (omittable) integers, not doubles. - no more unused `stripped_state.h` file inclusion.
Diffstat (limited to 'lib/csapi/registration.cpp')
-rw-r--r--lib/csapi/registration.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/csapi/registration.cpp b/lib/csapi/registration.cpp
index aa4b4fad..3541724b 100644
--- a/lib/csapi/registration.cpp
+++ b/lib/csapi/registration.cpp
@@ -18,7 +18,8 @@ RegisterJob::RegisterJob(const QString& kind,
const QString& username, const QString& password,
const QString& deviceId,
const QString& initialDeviceDisplayName,
- Omittable<bool> inhibitLogin)
+ Omittable<bool> inhibitLogin,
+ Omittable<bool> refreshToken)
: BaseJob(HttpVerb::Post, QStringLiteral("RegisterJob"),
makePath("/_matrix/client/v3", "/register"),
queryToRegister(kind), {}, false)
@@ -31,6 +32,7 @@ RegisterJob::RegisterJob(const QString& kind,
addParam<IfNotEmpty>(_data, QStringLiteral("initial_device_display_name"),
initialDeviceDisplayName);
addParam<IfNotEmpty>(_data, QStringLiteral("inhibit_login"), inhibitLogin);
+ addParam<IfNotEmpty>(_data, QStringLiteral("refresh_token"), refreshToken);
setRequestData(std::move(_data));
addExpectedKey("user_id");
}