about summary refs log tree commit diff
path: root/LibMatrix.EventTypes
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-04-22 17:03:09 +0200
committerRory& <root@rory.gay>2025-04-22 17:03:09 +0200
commitae199156caae9384d575d384daae5690e0b28aae (patch)
tree6f1d743c97f0102cbabc7705e30efdfb5c74f663 /LibMatrix.EventTypes
parentUpdate ArcaneLibs for Blazor a11y, return empty cache if not found in NamedCache (diff)
downloadLibMatrix-ae199156caae9384d575d384daae5690e0b28aae.tar.xz
Add tombstone event content, URL-escape room id in synapse admin
Diffstat (limited to 'LibMatrix.EventTypes')
-rw-r--r--LibMatrix.EventTypes/Spec/State/RoomInfo/RoomTombstoneEventContent.cs14
1 files changed, 14 insertions, 0 deletions
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