From ae199156caae9384d575d384daae5690e0b28aae Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 22 Apr 2025 17:03:09 +0200 Subject: Add tombstone event content, URL-escape room id in synapse admin --- .../Spec/State/RoomInfo/RoomTombstoneEventContent.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 LibMatrix.EventTypes/Spec/State/RoomInfo/RoomTombstoneEventContent.cs (limited to 'LibMatrix.EventTypes') diff --git a/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomTombstoneEventContent.cs b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomTombstoneEventContent.cs new file mode 100644 index 0000000..2c45c41 --- /dev/null +++ b/LibMatrix.EventTypes/Spec/State/RoomInfo/RoomTombstoneEventContent.cs @@ -0,0 +1,14 @@ +using System.Text.Json.Serialization; + +namespace LibMatrix.EventTypes.Spec.State.RoomInfo; + +[MatrixEvent(EventName = EventId)] +public class RoomTombstoneEventContent : EventContent { + public const string EventId = "m.room.tombstone"; + + [JsonPropertyName("body")] + public string Body { get; set; } + + [JsonPropertyName("replacement_room")] + public string ReplacementRoom { get; set; } +} \ No newline at end of file -- cgit 1.5.1