From bb8c2637af3b7982e7a4b2fd15e2fbec613d0848 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Fri, 30 Jun 2023 03:36:58 +0200 Subject: Todays progress --- MatrixRoomUtils.Web/Pages/Rooms/Index.razor | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'MatrixRoomUtils.Web/Pages/Rooms') diff --git a/MatrixRoomUtils.Web/Pages/Rooms/Index.razor b/MatrixRoomUtils.Web/Pages/Rooms/Index.razor index 17551c9..20ddd0d 100644 --- a/MatrixRoomUtils.Web/Pages/Rooms/Index.razor +++ b/MatrixRoomUtils.Web/Pages/Rooms/Index.razor @@ -1,20 +1,19 @@ @page "/Rooms"

Room list

-@if (Rooms != null) { +@if (Rooms is not null) { } @code { - private List Rooms { get; set; } + private List Rooms { get; set; } - protected override async Task OnInitializedAsync() - { - await LocalStorageWrapper.LoadFromLocalStorage(LocalStorage); - - Rooms = await RuntimeCache.CurrentHomeServer.GetJoinedRooms(); + protected override async Task OnInitializedAsync() { + var hs = await MRUStorage.GetCurrentSessionOrNavigate(); + if (hs is null) return; + Rooms = await hs.GetJoinedRooms(); await base.OnInitializedAsync(); } -- cgit 1.5.1