From f11fe491349854526f8d13e8b62458baeb3b23b6 Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Fri, 9 Feb 2024 16:30:49 +0100 Subject: Consistently use EventId for event types --- LibMatrix.EventTypes/EventContent.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'LibMatrix.EventTypes/EventContent.cs') 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(string eventId) where T : TimelineEventContent { - return SetReplaceRelation(eventId) as T ?? throw new InvalidOperationException(); - } + public T SetReplaceRelation(string eventId) where T : TimelineEventContent => SetReplaceRelation(eventId) as T ?? throw new InvalidOperationException(); public class MessageRelatesTo { [JsonPropertyName("m.in_reply_to")] -- cgit 1.4.1