about summary refs log tree commit diff
path: root/LibMatrix/StateEvent.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-05-18 22:52:21 +0200
committerRory& <root@rory.gay>2025-05-18 22:52:21 +0200
commit28adb35ab9b6905eebcd83b6caa1b12d49b26be7 (patch)
treede068a338b2e51dcb47e678e3b4e0bb877e70474 /LibMatrix/StateEvent.cs
parentRedo bot configuration (diff)
downloadLibMatrix-28adb35ab9b6905eebcd83b6caa1b12d49b26be7.tar.xz
Various bug fixes HEAD master
Diffstat (limited to 'LibMatrix/StateEvent.cs')
-rw-r--r--LibMatrix/StateEvent.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibMatrix/StateEvent.cs b/LibMatrix/StateEvent.cs

index e2ac87e..a1ca9dc 100644 --- a/LibMatrix/StateEvent.cs +++ b/LibMatrix/StateEvent.cs
@@ -121,7 +121,7 @@ public class StateEvent { public string InternalContentTypeName => TypedContent?.GetType().Name ?? "null"; public static bool TypeKeyPairMatches(StateEventResponse x, StateEventResponse y) => x.Type == y.Type && x.StateKey == y.StateKey; - public static bool Equals(StateEventResponse x, StateEventResponse y) => x.Type == y.Type && x.StateKey == y.StateKey && x.RawContent.Equals(y.RawContent); + public static bool Equals(StateEventResponse x, StateEventResponse y) => x.Type == y.Type && x.StateKey == y.StateKey && JsonNode.DeepEquals(x.RawContent, y.RawContent); } public class StateEventResponse : StateEvent {