From 08f5483df2c01eba7c764cdaec94fca71e4976b8 Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 30 May 2024 09:31:29 +0000 Subject: Clarify LegacyEvent types --- .../Spec/State/RoomInfo/RoomGuestAccessEventContent.cs | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 LibMatrix.EventTypes/Spec/State/RoomInfo/RoomGuestAccessEventContent.cs (limited to 'LibMatrix.EventTypes/Spec/State/RoomInfo/RoomGuestAccessEventContent.cs') diff --git a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomGuestAccessEventContent.cs b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomGuestAccessEventContent.cs deleted file mode 100644 index a7811bf..0000000 --- a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomGuestAccessEventContent.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Text.Json.Serialization; - -namespace LibMatrix.EventTypes.Spec.State; - -[MatrixEvent(EventName = EventId)] -public class RoomGuestAccessEventContent : EventContent { - public const string EventId = "m.room.guest_access"; - - [JsonPropertyName("guest_access")] - public string GuestAccess { get; set; } - - [JsonIgnore] - public bool IsGuestAccessEnabled { - get => GuestAccess == "can_join"; - set => GuestAccess = value ? "can_join" : "forbidden"; - } -} \ No newline at end of file -- cgit 1.4.1