aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/directory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/directory.cpp')
-rw-r--r--lib/csapi/directory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csapi/directory.cpp b/lib/csapi/directory.cpp
index d5c5882f..7e8b87b8 100644
--- a/lib/csapi/directory.cpp
+++ b/lib/csapi/directory.cpp
@@ -17,7 +17,7 @@ SetRoomAliasJob::SetRoomAliasJob(const QString& roomAlias, const QString& roomId
basePath % "/room/" % roomAlias)
{
QJsonObject _data;
- addToJson<IfNotEmpty>(_data, "room_id", roomId);
+ addParam<IfNotEmpty>(_data, "room_id", roomId);
setRequestData(_data);
}