diff options
Diffstat (limited to '')
-rw-r--r-- | LibMatrix.EventTypes/Spec/State/RoomInfo/RoomTopicEventContent.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomTopicEventContent.cs b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomTopicEventContent.cs index 8abb2c8..92fa75d 100644 --- a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomTopicEventContent.cs +++ b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomTopicEventContent.cs @@ -2,10 +2,11 @@ using System.Text.Json.Serialization; namespace LibMatrix.EventTypes.Spec.State; -[MatrixEvent(EventName = "m.room.topic")] +[MatrixEvent(EventName = EventId)] [MatrixEvent(EventName = "org.matrix.msc3765.topic", Legacy = true)] public class RoomTopicEventContent : EventContent { public const string EventId = "m.room.topic"; + [JsonPropertyName("topic")] public string? Topic { get; set; } -} +} \ No newline at end of file |