about summary refs log tree commit diff
path: root/LibMatrix.EventTypes/Spec/State/Space/SpaceParentEventContent.cs
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2024-02-09 16:30:49 +0100
committerEmma [it/its]@Rory& <root@rory.gay>2024-02-09 16:30:49 +0100
commitf11fe491349854526f8d13e8b62458baeb3b23b6 (patch)
treec1c423d6bce67b2aa235b28daac914e6a7d1a6d9 /LibMatrix.EventTypes/Spec/State/Space/SpaceParentEventContent.cs
parentAllow specifying chunk size for GetManyMessages (diff)
downloadLibMatrix-f11fe491349854526f8d13e8b62458baeb3b23b6.tar.xz
Consistently use EventId for event types
Diffstat (limited to 'LibMatrix.EventTypes/Spec/State/Space/SpaceParentEventContent.cs')
-rw-r--r--LibMatrix.EventTypes/Spec/State/Space/SpaceParentEventContent.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/LibMatrix.EventTypes/Spec/State/Space/SpaceParentEventContent.cs b/LibMatrix.EventTypes/Spec/State/Space/SpaceParentEventContent.cs

index 180f4b7..2ab79a4 100644 --- a/LibMatrix.EventTypes/Spec/State/Space/SpaceParentEventContent.cs +++ b/LibMatrix.EventTypes/Spec/State/Space/SpaceParentEventContent.cs
@@ -2,11 +2,13 @@ using System.Text.Json.Serialization; namespace LibMatrix.EventTypes.Spec.State; -[MatrixEvent(EventName = "m.space.parent")] +[MatrixEvent(EventName = EventId)] public class SpaceParentEventContent : EventContent { + public const string EventId = "m.space.parent"; + [JsonPropertyName("via")] public string[]? Via { get; set; } [JsonPropertyName("canonical")] public bool? Canonical { get; set; } -} +} \ No newline at end of file