diff options
author | Rory& <root@rory.gay> | 2024-08-09 21:12:11 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-08-09 21:12:11 +0200 |
commit | a2d4a4a82d849c5f6b0b34a97b35927db96bdef2 (patch) | |
tree | 745218b6107fd117a0187f3e23d907dcdce1737c /LibMatrix/StateEvent.cs | |
parent | More synapse admin apis (diff) | |
download | LibMatrix-a2d4a4a82d849c5f6b0b34a97b35927db96bdef2.tar.xz |
Minor cleanup
Diffstat (limited to '')
-rw-r--r-- | LibMatrix/StateEvent.cs | 3 |
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; // } |