From f11fe491349854526f8d13e8b62458baeb3b23b6 Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Fri, 9 Feb 2024 16:30:49 +0100 Subject: Consistently use EventId for event types --- LibMatrix.EventTypes/Common/RoomEmotesEventContent.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'LibMatrix.EventTypes/Common/RoomEmotesEventContent.cs') diff --git a/LibMatrix.EventTypes/Common/RoomEmotesEventContent.cs b/LibMatrix.EventTypes/Common/RoomEmotesEventContent.cs index bfe480e..b9a837f 100644 --- a/LibMatrix.EventTypes/Common/RoomEmotesEventContent.cs +++ b/LibMatrix.EventTypes/Common/RoomEmotesEventContent.cs @@ -2,8 +2,10 @@ using System.Text.Json.Serialization; namespace LibMatrix.EventTypes.Common; -[MatrixEvent(EventName = "im.ponies.room_emotes")] +[MatrixEvent(EventName = EventId)] public class RoomEmotesEventContent : TimelineEventContent { + public const string EventId = "im.ponies.room_emotes"; + [JsonPropertyName("emoticons")] public Dictionary? Emoticons { get; set; } @@ -19,4 +21,4 @@ public class RoomEmotesEventContent : TimelineEventContent { } public class PackInfo; // TODO: Implement this -} +} \ No newline at end of file -- cgit 1.4.1