diff options
author | Emma [it/its]@Rory& <root@rory.gay> | 2024-02-09 16:30:49 +0100 |
---|---|---|
committer | Emma [it/its]@Rory& <root@rory.gay> | 2024-02-09 16:30:49 +0100 |
commit | f11fe491349854526f8d13e8b62458baeb3b23b6 (patch) | |
tree | c1c423d6bce67b2aa235b28daac914e6a7d1a6d9 /LibMatrix.EventTypes/EventContent.cs | |
parent | Allow specifying chunk size for GetManyMessages (diff) | |
download | LibMatrix-bak-f11fe491349854526f8d13e8b62458baeb3b23b6.tar.xz |
Consistently use EventId for event types
Diffstat (limited to 'LibMatrix.EventTypes/EventContent.cs')
-rw-r--r-- | LibMatrix.EventTypes/EventContent.cs | 4 |
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")] |