about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Pages/RoomState/RoomStateRoomList.razor
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-07-01 20:51:15 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-07-01 20:51:15 +0200
commit7978f08235ceca22eacae11a88a7703513238cb3 (patch)
tree6a7058f21f6040cc1e9396a85774bc16ea133c9e /MatrixRoomUtils.Web/Pages/RoomState/RoomStateRoomList.razor
parentTodays progress (diff)
downloadMatrixUtils-7978f08235ceca22eacae11a88a7703513238cb3.tar.xz
Deduplicate some api calls
Diffstat (limited to 'MatrixRoomUtils.Web/Pages/RoomState/RoomStateRoomList.razor')
-rw-r--r--MatrixRoomUtils.Web/Pages/RoomState/RoomStateRoomList.razor32
1 files changed, 0 insertions, 32 deletions
diff --git a/MatrixRoomUtils.Web/Pages/RoomState/RoomStateRoomList.razor b/MatrixRoomUtils.Web/Pages/RoomState/RoomStateRoomList.razor
deleted file mode 100644
index 55c44d9..0000000
--- a/MatrixRoomUtils.Web/Pages/RoomState/RoomStateRoomList.razor
+++ /dev/null
@@ -1,32 +0,0 @@
-@page "/RoomStateViewer"
-@inject ILocalStorageService LocalStorage
-@inject NavigationManager NavigationManager
-<h3>Room state viewer - Room list</h3>
-<hr/>
-@if (Rooms.Count == 0) {
-    <p>You are not in any rooms!</p>
-    @* <p>Loading progress: @checkedRoomCount/@totalRoomCount</p> *@
-}
-else {
-    @foreach (var room in Rooms) {
-        <a style="color: unset; text-decoration: unset;" href="/RoomStateViewer/@room.Replace('.', '~')">
-            <RoomListItem RoomId="@room"></RoomListItem>
-        </a>
-    }
-    <div style="margin-bottom: 4em;"></div>
-}
-
-<LogView></LogView>
-
-@code {
-    public List<string> Rooms { get; set; } = new();
-
-    protected override async Task OnInitializedAsync() {
-        await base.OnInitializedAsync();
-        var hs = await MRUStorage.GetCurrentSessionOrNavigate();
-        if (hs is null) return;
-        Rooms = (await hs.GetJoinedRooms()).Select(x => x.RoomId).ToList();
-        Console.WriteLine("Fetched joined rooms!");
-    }
-
-}
\ No newline at end of file