about summary refs log tree commit diff
path: root/LibMatrix
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-03-22 16:38:53 +0000
committerRory& <root@rory.gay>2024-03-22 16:38:53 +0000
commit2b566a31b68f14d51faae61cbfbe359d0691a890 (patch)
treebfa1c6cc563f904bcae7c3461df8eb79e4e50290 /LibMatrix
parentNew messagebuilder stuff, table-based help command (diff)
downloadLibMatrix-bak-2b566a31b68f14d51faae61cbfbe359d0691a890.tar.xz
Changes
Diffstat (limited to 'LibMatrix')
-rw-r--r--LibMatrix/EventIdResponse.cs4
-rw-r--r--LibMatrix/StateEvent.cs2
2 files changed, 3 insertions, 3 deletions
diff --git a/LibMatrix/EventIdResponse.cs b/LibMatrix/EventIdResponse.cs

index 0a7cfd9..4d715a4 100644 --- a/LibMatrix/EventIdResponse.cs +++ b/LibMatrix/EventIdResponse.cs
@@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace LibMatrix; -public class EventIdResponse(string eventId) { +public class EventIdResponse { [JsonPropertyName("event_id")] - public string EventId { get; set; } = eventId; + public string EventId { get; set; } } \ No newline at end of file diff --git a/LibMatrix/StateEvent.cs b/LibMatrix/StateEvent.cs
index d9d0f4e..9800c27 100644 --- a/LibMatrix/StateEvent.cs +++ b/LibMatrix/StateEvent.cs
@@ -72,7 +72,7 @@ public class StateEvent { } [JsonPropertyName("state_key")] - public string StateKey { get; set; } + public string? StateKey { get; set; } [JsonPropertyName("type")] public string Type { get; set; }