about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Pages/User/Manage.razor
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-25 14:00:02 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-25 14:00:02 +0200
commit89315fa530e1f21e2e50d94f955693b9413c98fe (patch)
treebc0747aa1b4f53147030be26c24d079fb0b34001 /MatrixRoomUtils.Web/Pages/User/Manage.razor
parentClean up MRUStorageWrapper (diff)
downloadMatrixUtils-89315fa530e1f21e2e50d94f955693b9413c98fe.tar.xz
New things
Diffstat (limited to 'MatrixRoomUtils.Web/Pages/User/Manage.razor')
-rw-r--r--MatrixRoomUtils.Web/Pages/User/Manage.razor11
1 files changed, 6 insertions, 5 deletions
diff --git a/MatrixRoomUtils.Web/Pages/User/Manage.razor b/MatrixRoomUtils.Web/Pages/User/Manage.razor
index 25debf7..eac47e8 100644
--- a/MatrixRoomUtils.Web/Pages/User/Manage.razor
+++ b/MatrixRoomUtils.Web/Pages/User/Manage.razor
@@ -1,8 +1,9 @@
-@page "/User/Manage"
+@page "/User/Profile"
 @using LibMatrix.Homeservers
 @using LibMatrix.EventTypes.Spec.State
 @using ArcaneLibs.Extensions
-<h3>Manage user - @HomeServer?.WhoAmI?.UserId</h3>
+@using LibMatrix.Responses
+<h3>Manage Profile - @HomeServer?.WhoAmI?.UserId</h3>
 <hr/>
 
 @if (Profile is not null) {
@@ -48,8 +49,8 @@
     private string? _status = null;
 
     private AuthenticatedHomeserverGeneric? HomeServer { get; set; }
-    private ProfileResponseEventContent? Profile { get; set; }
-    private ProfileResponseEventContent? OldProfile { get; set; }
+    private UserProfileResponse? Profile { get; set; }
+    private UserProfileResponse? OldProfile { get; set; }
 
     private string? Status {
         get => _status;
@@ -77,7 +78,7 @@
 
         var roomNameTasks = RoomProfiles.Keys.Select(x => HomeServer.GetRoom(x)).Select(async x => {
             var name = await x.GetNameAsync();
-            return new KeyValuePair<string, string>(x.RoomId, name);
+            return new KeyValuePair<string, string?>(x.RoomId, name);
         }).ToAsyncEnumerable();
         await foreach (var (roomId, roomName) in roomNameTasks) {
             // Status = $"Got room name for {roomId}: {roomName}";