about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Pages/Rooms/Timeline.razor
diff options
context:
space:
mode:
authorEmma@Rory& <root@rory.gay>2023-09-19 00:17:18 +0200
committerEmma@Rory& <root@rory.gay>2023-09-19 00:17:18 +0200
commitec1752307a4a273324cd8f13bb099fed6ff7ef3a (patch)
tree5d287d992aa49d6d7f898198a6e769314f65f8eb /MatrixRoomUtils.Web/Pages/Rooms/Timeline.razor
parentRefactors (diff)
downloadMatrixUtils-ec1752307a4a273324cd8f13bb099fed6ff7ef3a.tar.xz
Refactors
Diffstat (limited to 'MatrixRoomUtils.Web/Pages/Rooms/Timeline.razor')
-rw-r--r--MatrixRoomUtils.Web/Pages/Rooms/Timeline.razor5
1 files changed, 3 insertions, 2 deletions
diff --git a/MatrixRoomUtils.Web/Pages/Rooms/Timeline.razor b/MatrixRoomUtils.Web/Pages/Rooms/Timeline.razor
index 2c95c99..68125cb 100644
--- a/MatrixRoomUtils.Web/Pages/Rooms/Timeline.razor
+++ b/MatrixRoomUtils.Web/Pages/Rooms/Timeline.razor
@@ -1,9 +1,10 @@
 @page "/Rooms/{RoomId}/Timeline"
 @using MatrixRoomUtils.Web.Shared.TimelineComponents
 @using LibMatrix
+@using LibMatrix.EventTypes.Spec
+@using LibMatrix.EventTypes.Spec.State
 @using LibMatrix.Homeservers
 @using LibMatrix.Responses
-@using LibMatrix.StateEventTypes.Spec
 <h3>RoomManagerTimeline</h3>
 <hr/>
 <p>Loaded @Events.Count events...</p>
@@ -30,7 +31,7 @@
         Console.WriteLine("RoomId: " + RoomId);
         HomeServer = await MRUStorage.GetCurrentSessionOrNavigate();
         if (HomeServer is null) return;
-        var room = await HomeServer.GetRoom(RoomId);
+        var room = HomeServer.GetRoom(RoomId);
         MessagesResponse? msgs = null;
         do {
             msgs = await room.GetMessagesAsync(limit: 1000, from: msgs?.End, dir: "b");