about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Pages/Rooms/Index.razor
blob: 17551c9557230289abeb8e352e05c110a9cb3286 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@page "/Rooms"
<h3>Room list</h3>

@if (Rooms != null) {
    <RoomList Rooms="Rooms"></RoomList>
}


@code {

    private List<Room> Rooms { get; set; }
    
    protected override async Task OnInitializedAsync()
    {
        await LocalStorageWrapper.LoadFromLocalStorage(LocalStorage);

        Rooms = await RuntimeCache.CurrentHomeServer.GetJoinedRooms();

        await base.OnInitializedAsync();
    }

}