From 28adb35ab9b6905eebcd83b6caa1b12d49b26be7 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 18 May 2025 22:52:21 +0200 Subject: Various bug fixes --- .../Spec/State/RoomInfo/RoomRedactionEventContent.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 LibMatrix.EventTypes/Spec/State/RoomInfo/RoomRedactionEventContent.cs (limited to 'LibMatrix.EventTypes/Spec/State') diff --git a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomRedactionEventContent.cs b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomRedactionEventContent.cs new file mode 100644 index 0000000..055f22d --- /dev/null +++ b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomRedactionEventContent.cs @@ -0,0 +1,18 @@ +using System.Diagnostics.CodeAnalysis; +using System.Text.Json.Serialization; + +namespace LibMatrix.EventTypes.Spec.State.RoomInfo; + +[MatrixEvent(EventName = EventId)] +public class RoomRedactionEventContent : EventContent { + public const string EventId = "m.room.redaction"; + + [JsonPropertyName("reason")] + public string? Reason { get; set; } + + /// + /// Required in room version 11 + /// + [JsonPropertyName("redacts")] + public string? Redacts { get; set; } +} \ No newline at end of file -- cgit 1.5.1