From 4be661d9996fc36ccdbd8bb45db450555c60af35 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 24 Nov 2025 17:55:26 +0100 Subject: [PATCH] Fix appearance of unread conversations --- .../controllers/matrix/matrix_room_controller.rs | 2 +- .../src/widgets/messages/RoomSelector.tsx | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/matrixgw_backend/src/controllers/matrix/matrix_room_controller.rs b/matrixgw_backend/src/controllers/matrix/matrix_room_controller.rs index 0751f92..1a64948 100644 --- a/matrixgw_backend/src/controllers/matrix/matrix_room_controller.rs +++ b/matrixgw_backend/src/controllers/matrix/matrix_room_controller.rs @@ -51,7 +51,7 @@ impl APIRoomInfo { avatar: r.avatar_url(), is_space: r.is_space(), parents: parent_spaces, - number_unread_messages: r.num_unread_messages(), + number_unread_messages: r.unread_notification_counts().notification_count, latest_event: get_events(r, 1, None).await?.messages.into_iter().next(), }) } diff --git a/matrixgw_frontend/src/widgets/messages/RoomSelector.tsx b/matrixgw_frontend/src/widgets/messages/RoomSelector.tsx index cbdba06..c908696 100644 --- a/matrixgw_frontend/src/widgets/messages/RoomSelector.tsx +++ b/matrixgw_frontend/src/widgets/messages/RoomSelector.tsx @@ -60,7 +60,18 @@ export function RoomSelector(p: { - + 0 ? "bold" : undefined, + }} + > + {roomName(user.info, r, p.users)} + + } + /> ))}