diff options
author | Rory& <root@rory.gay> | 2024-03-22 17:47:29 +0100 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-03-22 17:47:29 +0100 |
commit | c69e5c790b2b277d9b11265b8f0883e9f90fe3b9 (patch) | |
tree | a2ad72230772d7459605ebc4ba13337e70d3bda4 /MatrixUtils.Web/Pages/Rooms/Index.razor | |
parent | Changes (diff) | |
download | MatrixUtils-c69e5c790b2b277d9b11265b8f0883e9f90fe3b9.tar.xz |
Changes
Diffstat (limited to 'MatrixUtils.Web/Pages/Rooms/Index.razor')
-rw-r--r-- | MatrixUtils.Web/Pages/Rooms/Index.razor | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/MatrixUtils.Web/Pages/Rooms/Index.razor b/MatrixUtils.Web/Pages/Rooms/Index.razor index c44e23f..28c4de2 100644 --- a/MatrixUtils.Web/Pages/Rooms/Index.razor +++ b/MatrixUtils.Web/Pages/Rooms/Index.razor @@ -13,8 +13,9 @@ <p>@Status2</p> <LinkButton href="/Rooms/Create">Create new room</LinkButton> - -<RoomList Rooms="Rooms" GlobalProfile="@GlobalProfile" @bind-StillFetching="RenderContents"></RoomList> +<CascadingValue TValue="AuthenticatedHomeserverGeneric" Value="Homeserver"> + <RoomList Rooms="Rooms" GlobalProfile="@GlobalProfile" @bind-StillFetching="RenderContents"></RoomList> +</CascadingValue> @code { @@ -73,10 +74,9 @@ // SemaphoreSlim _semaphore = new(160, 160); GlobalProfile = await Homeserver.GetProfileAsync(Homeserver.WhoAmI.UserId); - // var filter = await Homeserver.NamedCaches.FilterCache.GetOrSetValueAsync(CommonSyncFilters.GetBasicRoomInfo); var filter = await Homeserver.NamedCaches.FilterCache.GetOrSetValueAsync(CommonSyncFilters.GetBasicRoomInfo); var filterData = await Homeserver.GetFilterAsync(filter); - + // Rooms = new ObservableCollection<RoomInfo>(rooms.Select(room => new RoomInfo(room))); // foreach (var stateType in filterData.Room?.State?.Types ?? []) { // var tasks = Rooms.Select(async room => { @@ -204,7 +204,7 @@ if (sync is null) continue; var filter = await Homeserver.GetFilterAsync(syncHelper.FilterId); - + Status = $"Got sync with {sync.Rooms?.Join?.Count ?? 0} room updates, next batch: {sync.NextBatch}!"; if (sync?.Rooms?.Join != null) foreach (var joinedRoom in sync.Rooms.Join) |