about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-12-15 02:39:58 +0100
committerRory& <root@rory.gay>2024-12-15 02:39:58 +0100
commitd21b53a05c45e1dd2591719e3622f8accbe27706 (patch)
tree821718a2c11c2bbe735e1b6b4f449fca382fae15
parentSync optimisation changes (diff)
downloadLibMatrix-d21b53a05c45e1dd2591719e3622f8accbe27706.tar.xz
Fix merge conflicts dev/moderationclient-changes
-rw-r--r--LibMatrix/StateEvent.cs18
1 files changed, 0 insertions, 18 deletions
diff --git a/LibMatrix/StateEvent.cs b/LibMatrix/StateEvent.cs

index 87050cc..dc76622 100644 --- a/LibMatrix/StateEvent.cs +++ b/LibMatrix/StateEvent.cs
@@ -31,23 +31,6 @@ public class StateEvent { public static Type GetStateEventType(string? type) => string.IsNullOrWhiteSpace(type) ? typeof(UnknownEventContent) : KnownStateEventTypesByName.GetValueOrDefault(type) ?? typeof(UnknownEventContent); - [JsonPropertyName("state_key")] - public string? StateKey { get; set; } - - [JsonPropertyName("type")] - public string Type { get; set; } - - [JsonPropertyName("replaces_state")] - public string? ReplacesState { get; set; } - - private JsonObject? _rawContent; - - [JsonPropertyName("content")] - public JsonObject? RawContent { - get => _rawContent; - set => _rawContent = value; - } - [JsonIgnore] public Type MappedType => GetStateEventType(Type); @@ -96,7 +79,6 @@ public class StateEvent { } } -<<<<<<< HEAD public T? ContentAs<T>() { try { return RawContent.Deserialize<T>(TypedContentSerializerOptions)!;