diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-30 03:36:58 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-30 03:36:58 +0200 |
commit | bb8c2637af3b7982e7a4b2fd15e2fbec613d0848 (patch) | |
tree | b8075ba7e507aad3f96f354712ad920ac421e474 /MatrixRoomUtils.Web/Pages/Rooms/Index.razor | |
parent | Update stuff (diff) | |
download | MatrixUtils-bb8c2637af3b7982e7a4b2fd15e2fbec613d0848.tar.xz |
Todays progress
Diffstat (limited to 'MatrixRoomUtils.Web/Pages/Rooms/Index.razor')
-rw-r--r-- | MatrixRoomUtils.Web/Pages/Rooms/Index.razor | 13 |
1 files changed, 6 insertions, 7 deletions
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" <h3>Room list</h3> -@if (Rooms != null) { +@if (Rooms is not null) { <RoomList Rooms="Rooms"></RoomList> } @code { - private List<Room> Rooms { get; set; } + private List<GenericRoom> 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(); } |