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/MjolnirShortcodeEventContent.cs | 2 +- LibMatrix.EventTypes/Common/RoomEmotesEventContent.cs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'LibMatrix.EventTypes/Common') diff --git a/LibMatrix.EventTypes/Common/MjolnirShortcodeEventContent.cs b/LibMatrix.EventTypes/Common/MjolnirShortcodeEventContent.cs index a4974e3..a31cbbb 100644 --- a/LibMatrix.EventTypes/Common/MjolnirShortcodeEventContent.cs +++ b/LibMatrix.EventTypes/Common/MjolnirShortcodeEventContent.cs @@ -8,4 +8,4 @@ public class MjolnirShortcodeEventContent : TimelineEventContent { [JsonPropertyName("shortcode")] public string? Shortcode { get; set; } -} +} \ No newline at end of file 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