From 3f7e21e08dcccf814fd8f889678b3c9801f0c404 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 29 Jan 2024 12:38:37 +0000 Subject: [PATCH] Fix display of room notification debug info (#12183) * Fix display of room notification debug info * Add 'one' string because apprently it just displays nothing at all if that's missing, rather than erroring or falling back to use the 'other'. * Simplify and always display the count: it's debug info so it's best to be very explicit anyway, plus simpler code & one less string. * Update snapshot --- .../dialogs/devtools/RoomNotifications.tsx | 30 +++++++------------ src/i18n/strings/en_EN.json | 2 +- .../RoomNotifications-test.tsx.snap | 4 +++ 3 files changed, 15 insertions(+), 21 deletions(-) diff --git a/src/components/views/dialogs/devtools/RoomNotifications.tsx b/src/components/views/dialogs/devtools/RoomNotifications.tsx index 5a43eeb935..234746b74a 100644 --- a/src/components/views/dialogs/devtools/RoomNotifications.tsx +++ b/src/components/views/dialogs/devtools/RoomNotifications.tsx @@ -77,26 +77,16 @@ export default function RoomNotifications({ onBack }: IDevtoolsProps): JSX.Eleme

{_t("devtools|room_status")}