diff options
author | Emma@Rory& <root@rory.gay> | 2023-09-19 00:17:18 +0200 |
---|---|---|
committer | Emma@Rory& <root@rory.gay> | 2023-09-19 00:17:18 +0200 |
commit | ec1752307a4a273324cd8f13bb099fed6ff7ef3a (patch) | |
tree | 5d287d992aa49d6d7f898198a6e769314f65f8eb /MatrixRoomUtils.Web/Shared/InlineUserItem.razor | |
parent | Refactors (diff) | |
download | MatrixUtils-ec1752307a4a273324cd8f13bb099fed6ff7ef3a.tar.xz |
Refactors
Diffstat (limited to 'MatrixRoomUtils.Web/Shared/InlineUserItem.razor')
-rw-r--r-- | MatrixRoomUtils.Web/Shared/InlineUserItem.razor | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/MatrixRoomUtils.Web/Shared/InlineUserItem.razor b/MatrixRoomUtils.Web/Shared/InlineUserItem.razor index af2fa29..e82b505 100644 --- a/MatrixRoomUtils.Web/Shared/InlineUserItem.razor +++ b/MatrixRoomUtils.Web/Shared/InlineUserItem.razor @@ -1,6 +1,5 @@ -@using LibMatrix.StateEventTypes -@using LibMatrix.StateEventTypes.Spec @using LibMatrix +@using LibMatrix.EventTypes.Spec.State @using LibMatrix.Helpers @using LibMatrix.Homeservers <div style="background-color: #ffffff11; border-radius: 0.5em; height: 1em; display: inline-block; vertical-align: middle;" alt="@UserId"> @@ -58,11 +57,11 @@ } if (User is null && UserId is not null) { - User ??= await HomeServer.GetProfile(UserId); + User ??= await HomeServer.GetProfileAsync(UserId); } - ProfileAvatar ??= MediaResolver.ResolveMediaUri(HomeServer.FullHomeServerDomain, User.AvatarUrl); + ProfileAvatar ??= await hsResolver.ResolveMediaUri(HomeServer.FullHomeServerDomain, User.AvatarUrl); ProfileName ??= User.DisplayName; _semaphoreSlim.Release(); |