about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs')
-rw-r--r--MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs19
1 files changed, 10 insertions, 9 deletions
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<StateEvent> {
                 new() {
                     Type = "m.room.history_visibility",
-                    Content = new {
+                    TypedContent = new {
                         history_visibility = "world_readable"
                     }
                 },
-                new StateEvent<GuestAccessData> {
+                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<string>(),
                         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<string, int> {
-                    { RuntimeCache.CurrentHomeServer.UserId, 100 }
+                    // { RuntimeCache.CurrentHomeServer.UserId, 100 }
+                    //TODO: re-implement this
                 }
             },
             CreationContent = new JsonObject {