@page "/RoomStateViewer" @inject ILocalStorageService LocalStorage @inject NavigationManager NavigationManager

Room state viewer - Room list


@if (Rooms.Count == 0) {

You are not in any rooms!

@*

Loading progress: @checkedRoomCount/@totalRoomCount

*@ } else { @foreach (var room in Rooms) { }
} @code { public List 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!"); } }