diff options
author | Rory& <root@rory.gay> | 2024-07-29 22:44:44 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-07-29 22:44:44 +0200 |
commit | d04269ea2bc944099d95a32aada7bcd4639969b2 (patch) | |
tree | e6998317638be351cc1f83333c87f562004c1652 /LibMatrix/StateEvent.cs | |
parent | Drop example bots (diff) | |
download | LibMatrix-d04269ea2bc944099d95a32aada7bcd4639969b2.tar.xz |
Some cleanup, fixes
Diffstat (limited to '')
-rw-r--r-- | LibMatrix/StateEvent.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LibMatrix/StateEvent.cs b/LibMatrix/StateEvent.cs index 81ee3fe..58ae7d2 100644 --- a/LibMatrix/StateEvent.cs +++ b/LibMatrix/StateEvent.cs @@ -156,13 +156,13 @@ public class StateEventResponse : StateEvent { public string? Sender { get; set; } [JsonPropertyName("unsigned")] - public UnsignedData? Unsigned { get; set; } + public JsonObject? Unsigned { get; set; } [JsonPropertyName("event_id")] public string? EventId { get; set; } public class UnsignedData { - [JsonPropertyName("age")] + [JsonPropertyName("age"), JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)] public ulong? Age { get; set; } [JsonPropertyName("redacted_because")] |