From 621130574be06fd9bccdbf585088aaf1d7e862df Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Fri, 9 Feb 2024 16:14:07 +0100 Subject: Allow specifying chunk size for GetManyMessages --- LibMatrix.EventTypes/Common/MjolnirShortcodeEventContent.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'LibMatrix.EventTypes') diff --git a/LibMatrix.EventTypes/Common/MjolnirShortcodeEventContent.cs b/LibMatrix.EventTypes/Common/MjolnirShortcodeEventContent.cs index 7924a33..a4974e3 100644 --- a/LibMatrix.EventTypes/Common/MjolnirShortcodeEventContent.cs +++ b/LibMatrix.EventTypes/Common/MjolnirShortcodeEventContent.cs @@ -2,8 +2,10 @@ using System.Text.Json.Serialization; namespace LibMatrix.EventTypes.Common; -[MatrixEvent(EventName = "org.matrix.mjolnir.shortcode")] +[MatrixEvent(EventName = EventId)] public class MjolnirShortcodeEventContent : TimelineEventContent { + public const string EventId = "org.matrix.mjolnir.shortcode"; + [JsonPropertyName("shortcode")] public string? Shortcode { get; set; } } -- cgit 1.4.1