about summary refs log tree commit diff
path: root/Tests/LibMatrix.Tests/Abstractions/RoomAbstraction.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/LibMatrix.Tests/Abstractions/RoomAbstraction.cs')
-rw-r--r--Tests/LibMatrix.Tests/Abstractions/RoomAbstraction.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/Tests/LibMatrix.Tests/Abstractions/RoomAbstraction.cs b/Tests/LibMatrix.Tests/Abstractions/RoomAbstraction.cs
index 2a380fc..4534ce6 100644
--- a/Tests/LibMatrix.Tests/Abstractions/RoomAbstraction.cs
+++ b/Tests/LibMatrix.Tests/Abstractions/RoomAbstraction.cs
@@ -14,29 +14,29 @@ public static class RoomAbstraction {
             // Visibility = CreateRoomVisibility.Public,
             RoomAliasName = Guid.NewGuid().ToString()
         };
-        crq.InitialState ??= new List<StateEvent>();
-        crq.InitialState.Add(new StateEvent() {
+        crq.InitialState ??= new List<LegacyMatrixEvent>();
+        crq.InitialState.Add(new LegacyMatrixEvent() {
             Type = "m.room.topic",
             StateKey = "",
             TypedContent = new RoomTopicEventContent() {
                 Topic = "LibMatrix Test Room " + DateTime.Now.ToString("O")
             }
         });
-        crq.InitialState.Add(new StateEvent() {
+        crq.InitialState.Add(new LegacyMatrixEvent() {
             Type = "m.room.name",
             StateKey = "",
             TypedContent = new RoomNameEventContent() {
                 Name = "LibMatrix Test Room " + DateTime.Now.ToString("O")
             }
         });
-        crq.InitialState.Add(new StateEvent() {
+        crq.InitialState.Add(new LegacyMatrixEvent() {
             Type = "m.room.avatar",
             StateKey = "",
             TypedContent = new RoomAvatarEventContent() {
                 Url = "mxc://conduit.rory.gay/r9KiT0f9eQbv8pv4RxwBZFuzhfKjGWHx"
             }
         });
-        crq.InitialState.Add(new StateEvent() {
+        crq.InitialState.Add(new LegacyMatrixEvent() {
             Type = "m.room.aliases",
             StateKey = "",
             TypedContent = new RoomAliasEventContent() {
@@ -60,7 +60,7 @@ public static class RoomAbstraction {
             Name = $"LibMatrix Test Space ({roomCount} children)",
             // Visibility = CreateRoomVisibility.Public,
             RoomAliasName = Guid.NewGuid().ToString(),
-            InitialState = new List<StateEvent>()
+            InitialState = new List<LegacyMatrixEvent>()
         };
         crq.CreationContentBaseType.Type = "m.space";
 
@@ -72,7 +72,7 @@ public static class RoomAbstraction {
             })).ToAsyncEnumerable();
 
         await foreach (var room in createRoomTasks)
-            crq.InitialState.Add(new StateEvent {
+            crq.InitialState.Add(new LegacyMatrixEvent {
                 Type = "m.space.child",
                 StateKey = room.RoomId,
                 TypedContent = new SpaceChildEventContent() {
@@ -85,7 +85,7 @@ public static class RoomAbstraction {
         if (addSpaces)
             for (var i = 0; i < roomCount; i++) {
                 var space = await GetTestSpace(hs, roomCount - spaceSizeReduction, true, spaceSizeReduction);
-                crq.InitialState.Add(new StateEvent {
+                crq.InitialState.Add(new LegacyMatrixEvent {
                     Type = "m.space.child",
                     StateKey = space.RoomId,
                     TypedContent = new SpaceChildEventContent() {