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.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/csapi/read_markers.cpp b/lib/csapi/read_markers.cpp
index 76145808..39e4d148 100644
--- a/lib/csapi/read_markers.cpp
+++ b/lib/csapi/read_markers.cpp
@@ -4,22 +4,19 @@
#include "read_markers.h"
-#include "converters.h"
-
#include <QtCore/QStringBuilder>
using namespace Quotient;
-static const auto basePath = QStringLiteral("/_matrix/client/r0");
-
SetReadMarkerJob::SetReadMarkerJob(const QString& roomId,
const QString& mFullyRead,
const QString& mRead)
: BaseJob(HttpVerb::Post, QStringLiteral("SetReadMarkerJob"),
- basePath % "/rooms/" % roomId % "/read_markers")
+ QStringLiteral("/_matrix/client/r0") % "/rooms/" % roomId
+ % "/read_markers")
{
QJsonObject _data;
addParam<>(_data, QStringLiteral("m.fully_read"), mFullyRead);
addParam<IfNotEmpty>(_data, QStringLiteral("m.read"), mRead);
- setRequestData(_data);
+ setRequestData(std::move(_data));
}