From c170ae2ae66f8dfcf6b4e3ed4f185fd051bad9e5 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Tue, 6 Jun 2023 00:56:30 +0200 Subject: unknown changes --- .../RoomCreationTemplates/DefaultRoomCreationTemplate.cs | 16 ++++++++-------- .../Pages/RoomManager/RoomManagerCreateRoom.razor | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs b/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs index 2bba01c..c43bd3c 100644 --- a/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs +++ b/MatrixRoomUtils.Web/Classes/RoomCreationTemplates/DefaultRoomCreationTemplate.cs @@ -24,14 +24,14 @@ public class DefaultRoomCreationTemplate : IRoomCreationTemplate history_visibility = "world_readable" } }, -new StateEvent -{ - Type = "m.room.guest_access", - Content = new() - { - GuestAccess = "can_join" - } -}, + new StateEvent + { + Type = "m.room.guest_access", + Content = new() + { + GuestAccess = "can_join" + } + }, new() { Type = "m.room.join_rules", diff --git a/MatrixRoomUtils.Web/Pages/RoomManager/RoomManagerCreateRoom.razor b/MatrixRoomUtils.Web/Pages/RoomManager/RoomManagerCreateRoom.razor index cb133dd..d561eb0 100644 --- a/MatrixRoomUtils.Web/Pages/RoomManager/RoomManagerCreateRoom.razor +++ b/MatrixRoomUtils.Web/Pages/RoomManager/RoomManagerCreateRoom.razor @@ -65,7 +65,7 @@ Guest access: - @(guestAccessEvent.IsGuestAccessEnabled ? "Guests can join" : "Guests cannot join") + @(guestAccessEvent.IsGuestAccessEnabled ? "Guests can join" : "Guests cannot join") (@guestAccessEvent.GuestAccess) @* *@ @* *@ @* *@ @@ -235,7 +235,7 @@ Console.WriteLine($"Creation event uncasted: {creationEvent["m.room.guest_access"].ToJson()}"); Console.WriteLine($"Creation event casted: {creationEvent["m.room.guest_access"].As().ToJson()}"); - creationEvent["m.room.guest_access"].As().Content.IsGuestAccessEnabled = false; + creationEvent["m.room.guest_access"].As().Content.IsGuestAccessEnabled = true; Console.WriteLine("-- Created new guest access content --"); Console.WriteLine($"Creation event uncasted: {creationEvent["m.room.guest_access"].ToJson()}"); Console.WriteLine($"Creation event casted: {creationEvent["m.room.guest_access"].As().ToJson()}"); -- cgit 1.4.1