From 87842de96afca3bf76ec527070bb6b56dbeda2f7 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 19 Jul 2025 22:40:21 +0200 Subject: Fix invite logic, further v12 fixes --- LibMatrix/Responses/CreateRoomRequest.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'LibMatrix/Responses/CreateRoomRequest.cs') diff --git a/LibMatrix/Responses/CreateRoomRequest.cs b/LibMatrix/Responses/CreateRoomRequest.cs index 6933622..8f8af31 100644 --- a/LibMatrix/Responses/CreateRoomRequest.cs +++ b/LibMatrix/Responses/CreateRoomRequest.cs @@ -42,7 +42,7 @@ public class CreateRoomRequest { public RoomPowerLevelEventContent? PowerLevelContentOverride { get; set; } [JsonPropertyName("creation_content")] - public JsonObject CreationContent { get; set; } = new(); + public Dictionary CreationContent { get; set; } = new(); [JsonPropertyName("invite")] public List? Invite { get; set; } @@ -91,7 +91,7 @@ public class CreateRoomRequest { var request = new CreateRoomRequest { Name = name ?? "New public Room", Visibility = "public", - CreationContent = new JsonObject(), + CreationContent = new(), PowerLevelContentOverride = new RoomPowerLevelEventContent { EventsDefault = 0, UsersDefault = 0, @@ -131,7 +131,7 @@ public class CreateRoomRequest { var request = new CreateRoomRequest { Name = name ?? "New private Room", Visibility = "private", - CreationContent = new JsonObject(), + CreationContent = new(), PowerLevelContentOverride = new RoomPowerLevelEventContent { EventsDefault = 0, UsersDefault = 0, -- cgit 1.5.1