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.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/csapi/create_room.cpp b/lib/csapi/create_room.cpp
index 72c8d547..17a9c60f 100644
--- a/lib/csapi/create_room.cpp
+++ b/lib/csapi/create_room.cpp
@@ -19,9 +19,6 @@ namespace QMatrixClient
QJsonObject toJson(const CreateRoomJob::Invite3pid& pod)
{
QJsonObject _json;
- if (pod.omitted)
- return _json;
-
addToJson<>(_json, "id_server", pod.idServer);
addToJson<>(_json, "medium", pod.medium);
addToJson<>(_json, "address", pod.address);
@@ -31,9 +28,6 @@ namespace QMatrixClient
QJsonObject toJson(const CreateRoomJob::StateEvent& pod)
{
QJsonObject _json;
- if (pod.omitted)
- return _json;
-
addToJson<IfNotEmpty>(_json, "type", pod.type);
addToJson<IfNotEmpty>(_json, "state_key", pod.stateKey);
addToJson<IfNotEmpty>(_json, "content", pod.content);