aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/create_room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/create_room.cpp')
-rw-r--r--lib/csapi/create_room.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/csapi/create_room.cpp b/lib/csapi/create_room.cpp
index 5600e18a..534f8fdd 100644
--- a/lib/csapi/create_room.cpp
+++ b/lib/csapi/create_room.cpp
@@ -28,9 +28,9 @@ namespace QMatrixClient
QJsonObject toJson(const CreateRoomJob::StateEvent& pod)
{
QJsonObject _json;
- addParam<IfNotEmpty>(_json, QStringLiteral("type"), pod.type);
+ addParam<>(_json, QStringLiteral("type"), pod.type);
addParam<IfNotEmpty>(_json, QStringLiteral("state_key"), pod.stateKey);
- addParam<IfNotEmpty>(_json, QStringLiteral("content"), pod.content);
+ addParam<>(_json, QStringLiteral("content"), pod.content);
return _json;
}
} // namespace QMatrixClient