From e6fe1eacc36245c9799afae6e4dfaecb62ea65d6 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Thu, 26 Oct 2023 13:15:18 +0000 Subject: Changes, fixes --- MatrixRoomUtils.Web/Shared/InlineUserItem.razor | 10 +++++----- MatrixRoomUtils.Web/Shared/NavMenu.razor | 2 +- .../Shared/RoomListComponents/RoomListCategory.razor | 2 +- .../Shared/TimelineComponents/TimelineMemberItem.razor | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'MatrixRoomUtils.Web/Shared') diff --git a/MatrixRoomUtils.Web/Shared/InlineUserItem.razor b/MatrixRoomUtils.Web/Shared/InlineUserItem.razor index 7bc88e5..dc58210 100644 --- a/MatrixRoomUtils.Web/Shared/InlineUserItem.razor +++ b/MatrixRoomUtils.Web/Shared/InlineUserItem.razor @@ -36,14 +36,14 @@ public string? ProfileName { get; set; } = null; [Parameter] - public AuthenticatedHomeserverGeneric? HomeServer { get; set; } + public AuthenticatedHomeserverGeneric? Homeserver { get; set; } private static SemaphoreSlim _semaphoreSlim = new(128); protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); - HomeServer ??= await MRUStorage.GetCurrentSessionOrNavigate(); - if(HomeServer is null) return; + Homeserver ??= await MRUStorage.GetCurrentSessionOrNavigate(); + if(Homeserver is null) return; await _semaphoreSlim.WaitAsync(); @@ -58,11 +58,11 @@ } if (User is null && UserId is not null) { - User ??= await HomeServer.GetProfileAsync(UserId); + User ??= await Homeserver.GetProfileAsync(UserId); } - ProfileAvatar ??= HomeServer.ResolveMediaUri(User.AvatarUrl); + ProfileAvatar ??= Homeserver.ResolveMediaUri(User.AvatarUrl); ProfileName ??= User.DisplayName; _semaphoreSlim.Release(); diff --git a/MatrixRoomUtils.Web/Shared/NavMenu.razor b/MatrixRoomUtils.Web/Shared/NavMenu.razor index daa4a52..f232940 100644 --- a/MatrixRoomUtils.Web/Shared/NavMenu.razor +++ b/MatrixRoomUtils.Web/Shared/NavMenu.razor @@ -55,7 +55,7 @@ diff --git a/MatrixRoomUtils.Web/Shared/RoomListComponents/RoomListCategory.razor b/MatrixRoomUtils.Web/Shared/RoomListComponents/RoomListCategory.razor index e2c1285..cbe542a 100644 --- a/MatrixRoomUtils.Web/Shared/RoomListComponents/RoomListCategory.razor +++ b/MatrixRoomUtils.Web/Shared/RoomListComponents/RoomListCategory.razor @@ -9,7 +9,7 @@
@* @if (RoomVersionDangerLevel(room) != 0 && *@ - @* (room.StateEvents.FirstOrDefault(x=>x.Type == "m.room.power_levels")?.TypedContent is RoomPowerLevelEventContent powerLevels && powerLevels.UserHasPermission(HomeServer.UserId, "m.room.tombstone"))) { *@ + @* (room.StateEvents.FirstOrDefault(x=>x.Type == "m.room.power_levels")?.TypedContent is RoomPowerLevelEventContent powerLevels && powerLevels.UserHasPermission(Homeserver.UserId, "m.room.tombstone"))) { *@ @* Upgrade room *@ @* } *@ View timeline diff --git a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineMemberItem.razor b/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineMemberItem.razor index 075e402..ed4dceb 100644 --- a/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineMemberItem.razor +++ b/MatrixRoomUtils.Web/Shared/TimelineComponents/TimelineMemberItem.razor @@ -15,7 +15,7 @@ @Event.StateKey changed their display name to @(roomMemberData.DisplayName ?? Event.Sender) break; case "join": - joined + joined break; case "leave": @Event.StateKey left -- cgit 1.4.1