about summary refs log tree commit diff
path: root/LibMatrix/Responses
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2023-12-19 18:55:45 +0100
committerEmma [it/its]@Rory& <root@rory.gay>2023-12-19 18:55:45 +0100
commit4877079e79b62ae8e8031ab6e3d4e0742abb8530 (patch)
tree5d354d1de45586585c28a01550f9cd1365e58a4a /LibMatrix/Responses
parentCleanup (diff)
downloadLibMatrix-4877079e79b62ae8e8031ab6e3d4e0742abb8530.tar.xz
Cleanup
Diffstat (limited to 'LibMatrix/Responses')
-rw-r--r--LibMatrix/Responses/CreateRoomRequest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibMatrix/Responses/CreateRoomRequest.cs b/LibMatrix/Responses/CreateRoomRequest.cs
index f8d1d05..3b93cf7 100644
--- a/LibMatrix/Responses/CreateRoomRequest.cs
+++ b/LibMatrix/Responses/CreateRoomRequest.cs
@@ -56,7 +56,7 @@ public class CreateRoomRequest {
                     TypedContent = (EventContent)Activator.CreateInstance(
                         StateEvent.KnownStateEventTypes.FirstOrDefault(x =>
                             x.GetCustomAttributes<MatrixEventAttribute>()?
-                                .Any(y => y.EventName == eventType) ?? false) ?? typeof(object)
+                                .Any(y => y.EventName == eventType) ?? false) ?? typeof(UnknownEventContent)
                     )!
                 });
             }