From 67730172707eb5a57eb32cae1fc44322160ef160 Mon Sep 17 00:00:00 2001 From: Aurastic <33085835+ISenseAura@users.noreply.github.com> Date: Sun, 10 Aug 2025 05:30:53 +0530 Subject: [PATCH] Preact: Fix chatroom notification count in mobile (#2507) --- play.pokemonshowdown.com/src/panel-topbar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/play.pokemonshowdown.com/src/panel-topbar.tsx b/play.pokemonshowdown.com/src/panel-topbar.tsx index 27b52cbbc..8334b65dc 100644 --- a/play.pokemonshowdown.com/src/panel-topbar.tsx +++ b/play.pokemonshowdown.com/src/panel-topbar.tsx @@ -309,7 +309,8 @@ export class PSMiniHeader extends preact.Component { if (PS.leftPanelWidth !== null) return null; let notificationsCount = 0; - for (const roomid of PS.leftRoomList) { + const notificationRooms = [...PS.leftRoomList, ...PS.rightRoomList]; + for (const roomid of notificationRooms) { const miniNotifications = PS.rooms[roomid]?.notifications; if (miniNotifications?.length) notificationsCount++; }