diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-26 13:15:18 +0000 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-10-26 13:17:10 +0000 |
commit | e6fe1eacc36245c9799afae6e4dfaecb62ea65d6 (patch) | |
tree | 362fe1734d8a18446243642fc0e7d914b9ceb20d /MatrixRoomUtils.Web/Shared/InlineUserItem.razor | |
parent | New things (diff) | |
download | MatrixUtils-e6fe1eacc36245c9799afae6e4dfaecb62ea65d6.tar.xz |
Changes, fixes
Diffstat (limited to 'MatrixRoomUtils.Web/Shared/InlineUserItem.razor')
-rw-r--r-- | MatrixRoomUtils.Web/Shared/InlineUserItem.razor | 10 |
1 files changed, 5 insertions, 5 deletions
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(); |