about summary refs log tree commit diff
path: root/LibMatrix/StateEvent.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-08-09 21:12:11 +0200
committerRory& <root@rory.gay>2024-08-09 21:12:11 +0200
commita2d4a4a82d849c5f6b0b34a97b35927db96bdef2 (patch)
tree745218b6107fd117a0187f3e23d907dcdce1737c /LibMatrix/StateEvent.cs
parentMore synapse admin apis (diff)
downloadLibMatrix-a2d4a4a82d849c5f6b0b34a97b35927db96bdef2.tar.xz
Minor cleanup
Diffstat (limited to 'LibMatrix/StateEvent.cs')
-rw-r--r--LibMatrix/StateEvent.cs3
1 files changed, 2 insertions, 1 deletions
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<Type> KnownStateEventTypes { get; } = new ClassCollector<EventContent>().ResolveFromAllAccessibleAssemblies().ToFrozenSet();
+    public static FrozenSet<Type> KnownStateEventTypes { get; } = ClassCollector<EventContent>.ResolveFromAllAccessibleAssemblies().ToFrozenSet();
 
     public static FrozenDictionary<string, Type> KnownStateEventTypesByName { get; } = KnownStateEventTypes.Aggregate(
         new Dictionary<string, Type>(),
@@ -55,6 +55,7 @@ public class StateEvent {
     [SuppressMessage("ReSharper", "PropertyCanBeMadeInitOnly.Global")]
     public EventContent? TypedContent {
         get {
+            ClassCollector<EventContent>.ResolveFromAllAccessibleAssemblies();
             // if (Type == "m.receipt") {
             // return null;
             // }