diff options
Diffstat (limited to '')
-rw-r--r-- | LibMatrix.EventTypes/Spec/RoomMessageEventContent.cs (renamed from LibMatrix/EventTypes/Spec/RoomMessageEventContent.cs) | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/LibMatrix/EventTypes/Spec/RoomMessageEventContent.cs b/LibMatrix.EventTypes/Spec/RoomMessageEventContent.cs index 944ed99..1e27bce 100644 --- a/LibMatrix/EventTypes/Spec/RoomMessageEventContent.cs +++ b/LibMatrix.EventTypes/Spec/RoomMessageEventContent.cs @@ -1,5 +1,4 @@ using System.Text.Json.Serialization; -using LibMatrix.Interfaces; namespace LibMatrix.EventTypes.Spec; @@ -7,9 +6,9 @@ namespace LibMatrix.EventTypes.Spec; public class RoomMessageEventContent : TimelineEventContent { public const string EventId = "m.room.message"; - public RoomMessageEventContent(string? messageType = "m.notice", string? body = null) { + public RoomMessageEventContent(string messageType = "m.notice", string? body = null) { MessageType = messageType; - Body = body; + Body = body ?? ""; } [JsonPropertyName("body")] |