diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-11-09 07:38:33 +0100 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-11-09 07:38:33 +0100 |
commit | c37bcb0e4a878d4f4c0e47988adb8624131c82cd (patch) | |
tree | 706f5300ce83b511d807decddd5b3521168b5fc7 /MatrixRoomUtils.Web/Pages/User | |
parent | Fix updates (diff) | |
download | MatrixUtils-c37bcb0e4a878d4f4c0e47988adb8624131c82cd.tar.xz |
event types
Diffstat (limited to 'MatrixRoomUtils.Web/Pages/User')
-rw-r--r-- | MatrixRoomUtils.Web/Pages/User/DMManager.razor | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/MatrixRoomUtils.Web/Pages/User/DMManager.razor b/MatrixRoomUtils.Web/Pages/User/DMManager.razor index 92e1bc2..f753f18 100644 --- a/MatrixRoomUtils.Web/Pages/User/DMManager.razor +++ b/MatrixRoomUtils.Web/Pages/User/DMManager.razor @@ -40,7 +40,14 @@ var roomList = new List<RoomInfo>(); DMRooms.Add(await Homeserver.GetProfileAsync(userId), roomList); foreach (var room in rooms) { - roomList.Add(new RoomInfo() { Room = Homeserver.GetRoom(room) }); + var roomInfo = new RoomInfo() { Room = Homeserver.GetRoom(room) }; + roomList.Add(roomInfo); + roomInfo.StateEvents.Add(new() { + Type = RoomNameEventContent.EventId, + TypedContent = new RoomNameEventContent() { + Name = await Homeserver.GetRoom(room).GetNameOrFallbackAsync(4) + } + }); } StateHasChanged(); } @@ -51,6 +58,4 @@ await base.OnInitializedAsync(); } - - } \ No newline at end of file |