From a2d4a4a82d849c5f6b0b34a97b35927db96bdef2 Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 9 Aug 2024 21:12:11 +0200 Subject: Minor cleanup --- LibMatrix/StateEvent.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'LibMatrix/StateEvent.cs') diff --git a/LibMatrix/StateEvent.cs b/LibMatrix/StateEvent.cs index 58ae7d2..75d4b12 100644 --- a/LibMatrix/StateEvent.cs +++ b/LibMatrix/StateEvent.cs @@ -13,7 +13,7 @@ using LibMatrix.Extensions; namespace LibMatrix; public class StateEvent { - public static FrozenSet KnownStateEventTypes { get; } = new ClassCollector().ResolveFromAllAccessibleAssemblies().ToFrozenSet(); + public static FrozenSet KnownStateEventTypes { get; } = ClassCollector.ResolveFromAllAccessibleAssemblies().ToFrozenSet(); public static FrozenDictionary KnownStateEventTypesByName { get; } = KnownStateEventTypes.Aggregate( new Dictionary(), @@ -55,6 +55,7 @@ public class StateEvent { [SuppressMessage("ReSharper", "PropertyCanBeMadeInitOnly.Global")] public EventContent? TypedContent { get { + ClassCollector.ResolveFromAllAccessibleAssemblies(); // if (Type == "m.receipt") { // return null; // } -- cgit 1.5.1