about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Pages/User/DMManager.razor
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-26 13:15:18 +0000
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-26 13:17:10 +0000
commite6fe1eacc36245c9799afae6e4dfaecb62ea65d6 (patch)
tree362fe1734d8a18446243642fc0e7d914b9ceb20d /MatrixRoomUtils.Web/Pages/User/DMManager.razor
parentNew things (diff)
downloadMatrixUtils-e6fe1eacc36245c9799afae6e4dfaecb62ea65d6.tar.xz
Changes, fixes
Diffstat (limited to 'MatrixRoomUtils.Web/Pages/User/DMManager.razor')
-rw-r--r--MatrixRoomUtils.Web/Pages/User/DMManager.razor14
1 files changed, 7 insertions, 7 deletions
diff --git a/MatrixRoomUtils.Web/Pages/User/DMManager.razor b/MatrixRoomUtils.Web/Pages/User/DMManager.razor
index 04ff6e5..92e1bc2 100644
--- a/MatrixRoomUtils.Web/Pages/User/DMManager.razor
+++ b/MatrixRoomUtils.Web/Pages/User/DMManager.razor
@@ -16,7 +16,7 @@
 
 @code {
     private string? _status;
-    private AuthenticatedHomeserverGeneric? HomeServer { get; set; }
+    private AuthenticatedHomeserverGeneric? Homeserver { get; set; }
     private Dictionary<UserProfileResponse, List<RoomInfo>> DMRooms { get; set; } = new();
 
     public string? Status {
@@ -28,19 +28,19 @@
     }
 
     protected override async Task OnInitializedAsync() {
-        HomeServer = await MRUStorage.GetCurrentSessionOrNavigate();
-        if (HomeServer is null) return;
+        Homeserver = await MRUStorage.GetCurrentSessionOrNavigate();
+        if (Homeserver is null) return;
         Status = "Loading global profile...";
-        if (HomeServer.WhoAmI?.UserId is null) return;
+        if (Homeserver.WhoAmI?.UserId is null) return;
 
         Status = "Loading DM list from account data...";
-        var dms = await HomeServer.GetAccountDataAsync<Dictionary<string, List<string>>>("m.direct");
+        var dms = await Homeserver.GetAccountDataAsync<Dictionary<string, List<string>>>("m.direct");
         DMRooms.Clear();
         foreach (var (userId, rooms) in dms) {
             var roomList = new List<RoomInfo>();
-            DMRooms.Add(await HomeServer.GetProfileAsync(userId), roomList);
+            DMRooms.Add(await Homeserver.GetProfileAsync(userId), roomList);
             foreach (var room in rooms) {
-                roomList.Add(new RoomInfo() { Room = HomeServer.GetRoom(room) });
+                roomList.Add(new RoomInfo() { Room = Homeserver.GetRoom(room) });
             }
             StateHasChanged();
         }