about summary refs log tree commit diff
path: root/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2024-02-09 16:30:49 +0100
committerEmma [it/its]@Rory& <root@rory.gay>2024-02-09 16:30:49 +0100
commitf11fe491349854526f8d13e8b62458baeb3b23b6 (patch)
treec1c423d6bce67b2aa235b28daac914e6a7d1a6d9 /LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs
parentAllow specifying chunk size for GetManyMessages (diff)
downloadLibMatrix-f11fe491349854526f8d13e8b62458baeb3b23b6.tar.xz
Consistently use EventId for event types
Diffstat (limited to 'LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs')
-rw-r--r--LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs
index 981d927..b557e47 100644
--- a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs
+++ b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomJoinRulesEventContent.cs
@@ -2,9 +2,10 @@ using System.Text.Json.Serialization;
 
 namespace LibMatrix.EventTypes.Spec.State;
 
-[MatrixEvent(EventName = "m.room.join_rules")]
+[MatrixEvent(EventName = EventId)]
 public class RoomJoinRulesEventContent : EventContent {
     public const string EventId = "m.room.join_rules";
+
     /// <summary>
     /// one of ["public", "invite", "knock", "restricted", "knock_restricted"]
     /// "private" is reserved without implementation!
@@ -12,7 +13,7 @@ public class RoomJoinRulesEventContent : EventContent {
     /// </summary>
     [JsonPropertyName("join_rule")]
     public string JoinRuleValue { get; set; }
-    
+
     [JsonIgnore]
     public JoinRules JoinRule {
         get => JoinRuleValue switch {
@@ -52,4 +53,4 @@ public class RoomJoinRulesEventContent : EventContent {
         KnockRestricted,
         Private // reserved without implementation!
     }
-}
+}
\ No newline at end of file