From bb8c2637af3b7982e7a4b2fd15e2fbec613d0848 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Fri, 30 Jun 2023 03:36:58 +0200 Subject: Todays progress --- .../DefaultRoomCreationTemplate.cs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'MatrixRoomUtils.Web/Classes/RoomCreationTemplates') diff --git a/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs b/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs index 4a31928..ca6345f 100644 --- a/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs +++ b/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs @@ -15,25 +15,25 @@ public class DefaultRoomCreationTemplate : IRoomCreationTemplate { InitialState = new List { new() { Type = "m.room.history_visibility", - Content = new { + TypedContent = new { history_visibility = "world_readable" } }, - new StateEvent { + new() { Type = "m.room.guest_access", - Content = new GuestAccessData { + TypedContent = new GuestAccessData { GuestAccess = "can_join" } }, new() { Type = "m.room.join_rules", - Content = new { - join_rule = "public" + TypedContent = new JoinRulesEventData() { + JoinRule = "public" } }, new() { Type = "m.room.server_acl", - Content = new { + TypedContent = new { allow = new[] { "*" }, deny = Array.Empty(), allow_ip_literals = false @@ -41,8 +41,8 @@ public class DefaultRoomCreationTemplate : IRoomCreationTemplate { }, new() { Type = "m.room.avatar", - Content = new { - url = "mxc://feline.support/UKNhEyrVsrAbYteVvZloZcFj" + TypedContent = new RoomAvatarEventData() { + Url = "mxc://feline.support/UKNhEyrVsrAbYteVvZloZcFj" } } }, @@ -78,7 +78,8 @@ public class DefaultRoomCreationTemplate : IRoomCreationTemplate { { "org.matrix.msc3401.call.member", 50 } }, Users = new Dictionary { - { RuntimeCache.CurrentHomeServer.UserId, 100 } + // { RuntimeCache.CurrentHomeServer.UserId, 100 } + //TODO: re-implement this } }, CreationContent = new JsonObject { -- cgit 1.5.1