about summary refs log tree commit diff
path: root/LibMatrix.EventTypes/EventContent.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/EventContent.cs
parentAllow specifying chunk size for GetManyMessages (diff)
downloadLibMatrix-f11fe491349854526f8d13e8b62458baeb3b23b6.tar.xz
Consistently use EventId for event types
Diffstat (limited to 'LibMatrix.EventTypes/EventContent.cs')
-rw-r--r--LibMatrix.EventTypes/EventContent.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/LibMatrix.EventTypes/EventContent.cs b/LibMatrix.EventTypes/EventContent.cs

index 608550f..c582cf2 100644 --- a/LibMatrix.EventTypes/EventContent.cs +++ b/LibMatrix.EventTypes/EventContent.cs
@@ -25,9 +25,7 @@ public abstract class TimelineEventContent : EventContent { return this; } - public T SetReplaceRelation<T>(string eventId) where T : TimelineEventContent { - return SetReplaceRelation(eventId) as T ?? throw new InvalidOperationException(); - } + public T SetReplaceRelation<T>(string eventId) where T : TimelineEventContent => SetReplaceRelation(eventId) as T ?? throw new InvalidOperationException(); public class MessageRelatesTo { [JsonPropertyName("m.in_reply_to")]