From 0330ff6706a968400ca8fe2a3e3ccf6237a15566 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Thu, 19 Oct 2023 07:20:34 +0200 Subject: fix synchelper null check --- LibMatrix/EventTypes/Spec/State/RoomInfo/RoomCreateEventContent.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'LibMatrix/EventTypes/Spec/State/RoomInfo/RoomCreateEventContent.cs') diff --git a/LibMatrix/EventTypes/Spec/State/RoomInfo/RoomCreateEventContent.cs b/LibMatrix/EventTypes/Spec/State/RoomInfo/RoomCreateEventContent.cs index 275203c..46c4000 100644 --- a/LibMatrix/EventTypes/Spec/State/RoomInfo/RoomCreateEventContent.cs +++ b/LibMatrix/EventTypes/Spec/State/RoomInfo/RoomCreateEventContent.cs @@ -3,8 +3,10 @@ using LibMatrix.Interfaces; namespace LibMatrix.EventTypes.Spec.State; -[MatrixEvent(EventName = "m.room.create")] +[MatrixEvent(EventName = EventId)] public class RoomCreateEventContent : EventContent { + public const string EventId = "m.room.create"; + [JsonPropertyName("room_version")] public string? RoomVersion { get; set; } -- cgit 1.4.1