diff options
author | Emma [it/its]@Rory& <root@rory.gay> | 2023-12-19 18:55:45 +0100 |
---|---|---|
committer | Emma [it/its]@Rory& <root@rory.gay> | 2023-12-19 18:55:45 +0100 |
commit | 4877079e79b62ae8e8031ab6e3d4e0742abb8530 (patch) | |
tree | 5d354d1de45586585c28a01550f9cd1365e58a4a /LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs | |
parent | Cleanup (diff) | |
download | LibMatrix-4877079e79b62ae8e8031ab6e3d4e0742abb8530.tar.xz |
Cleanup
Diffstat (limited to 'LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs')
-rw-r--r-- | LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs index e300b5d..0663288 100644 --- a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs +++ b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs @@ -3,7 +3,7 @@ using System.Text.Json.Serialization; namespace LibMatrix.EventTypes.Spec.State; [MatrixEvent(EventName = "m.room.join_rules")] -public class RoomJoinRulesEventContent : TimelineEventContent { +public class RoomJoinRulesEventContent : EventContent { /// <summary> /// one of ["public", "invite", "knock", "restricted", "knock_restricted"] /// "private" is reserved without implementation! @@ -12,7 +12,7 @@ public class RoomJoinRulesEventContent : TimelineEventContent { public string JoinRuleValue { get; set; } [JsonIgnore] - public required JoinRules JoinRule { + public JoinRules JoinRule { get => JoinRuleValue switch { "public" => JoinRules.Public, "invite" => JoinRules.Invite, |