diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-30 03:36:58 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-30 03:36:58 +0200 |
commit | bb8c2637af3b7982e7a4b2fd15e2fbec613d0848 (patch) | |
tree | b8075ba7e507aad3f96f354712ad920ac421e474 /MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs | |
parent | Update stuff (diff) | |
download | MatrixUtils-bb8c2637af3b7982e7a4b2fd15e2fbec613d0848.tar.xz |
Todays progress
Diffstat (limited to 'MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs')
-rw-r--r-- | MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs | 19 |
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 { |