aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/pusher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/pusher.cpp')
-rw-r--r--lib/csapi/pusher.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/csapi/pusher.cpp b/lib/csapi/pusher.cpp
index feecdbc7..531970b3 100644
--- a/lib/csapi/pusher.cpp
+++ b/lib/csapi/pusher.cpp
@@ -24,6 +24,8 @@ namespace QMatrixClient
GetPushersJob::PusherData result;
result.url =
fromJson<QString>(_json.value("url"_ls));
+ result.format =
+ fromJson<QString>(_json.value("format"_ls));
return result;
}
@@ -100,6 +102,7 @@ namespace QMatrixClient
{
QJsonObject _json;
addParam<IfNotEmpty>(_json, QStringLiteral("url"), pod.url);
+ addParam<IfNotEmpty>(_json, QStringLiteral("format"), pod.format);
return _json;
}
} // namespace QMatrixClient