diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-02-12 07:55:15 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-02-15 07:47:13 +0900 |
commit | 52dcb27e1c19389bd833c93609910483ea3be549 (patch) | |
tree | dd1fe016016c8d95627f15a8c0dedf5db8298fb5 /lib/csapi/capabilities.cpp | |
parent | 1c83d54f705ad786e4a27aaab94e3a0af725a07c (diff) | |
download | libquotient-52dcb27e1c19389bd833c93609910483ea3be549.tar.gz libquotient-52dcb27e1c19389bd833c93609910483ea3be549.zip |
RoomVersionsCapability: fix naming for 'default' parameter
The same word is used as a predicate in push_rule.yaml and
as a noun in capabilities.yaml; fortunately, GTAD gives some
means to distinguish the two.
Diffstat (limited to 'lib/csapi/capabilities.cpp')
-rw-r--r-- | lib/csapi/capabilities.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csapi/capabilities.cpp b/lib/csapi/capabilities.cpp index a8e79f6b..bd92cf25 100644 --- a/lib/csapi/capabilities.cpp +++ b/lib/csapi/capabilities.cpp @@ -28,7 +28,7 @@ namespace QMatrixClient { static void fillFrom(const QJsonObject& jo, GetCapabilitiesJob::RoomVersionsCapability& result) { - fromJson(jo.value("default"_ls), result.isDefault); + fromJson(jo.value("default"_ls), result.defaultVersion); fromJson(jo.value("available"_ls), result.available); } }; |