about summary refs log tree commit diff
path: root/LibMatrix/StateEvent.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-07-23 09:03:42 +0200
committerRory& <root@rory.gay>2025-07-23 09:05:01 +0200
commit150c6b03003ca97192b65a274c5234b04e32b2ac (patch)
treeabb91eaa22327de13f32e72c6d7e881338779ef4 /LibMatrix/StateEvent.cs
parentMake server ACLs expose matching regexes (need to be checked and tested, still) (diff)
downloadLibMatrix-150c6b03003ca97192b65a274c5234b04e32b2ac.tar.xz
Add debugger displays to summarise SummaryDataStructure and EventList, hide ClassNeverInstantiated warning for EventContent implementations
Diffstat (limited to '')
-rw-r--r--LibMatrix/StateEvent.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/LibMatrix/StateEvent.cs b/LibMatrix/StateEvent.cs

index af25805..aa755ef 100644 --- a/LibMatrix/StateEvent.cs +++ b/LibMatrix/StateEvent.cs
@@ -1,4 +1,5 @@ using System.Collections.Frozen; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Reflection; using System.Text.Json; @@ -174,6 +175,7 @@ public class StateEventResponse : StateEvent { [JsonSerializable(typeof(ChunkedStateEventResponse))] internal partial class ChunkedStateEventResponseSerializerContext : JsonSerializerContext; +[DebuggerDisplay("{Events.Count} events")] public class EventList { public EventList() { }