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

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


@code {

    private List<GenericRoom> Rooms { get; set; }
    
    protected override async Task OnInitializedAsync() {
        var hs = await MRUStorage.GetCurrentSessionOrNavigate();
        if (hs is null) return;
        Rooms = await hs.GetJoinedRooms();

        await base.OnInitializedAsync();
    }

}