aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/read_markers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/read_markers.cpp')
-rw-r--r--lib/csapi/read_markers.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/csapi/read_markers.cpp b/lib/csapi/read_markers.cpp
index de5f4a9a..febd6d3a 100644
--- a/lib/csapi/read_markers.cpp
+++ b/lib/csapi/read_markers.cpp
@@ -8,12 +8,15 @@ using namespace Quotient;
SetReadMarkerJob::SetReadMarkerJob(const QString& roomId,
const QString& mFullyRead,
- const QString& mRead)
+ const QString& mRead,
+ const QString& mReadPrivate)
: BaseJob(HttpVerb::Post, QStringLiteral("SetReadMarkerJob"),
makePath("/_matrix/client/v3", "/rooms/", roomId, "/read_markers"))
{
QJsonObject _dataJson;
- addParam<>(_dataJson, QStringLiteral("m.fully_read"), mFullyRead);
+ addParam<IfNotEmpty>(_dataJson, QStringLiteral("m.fully_read"), mFullyRead);
addParam<IfNotEmpty>(_dataJson, QStringLiteral("m.read"), mRead);
+ addParam<IfNotEmpty>(_dataJson, QStringLiteral("m.read.private"),
+ mReadPrivate);
setRequestData({ _dataJson });
}