mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Preact: Fix chatroom notification count in mobile (#2507)
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
This commit is contained in:
parent
8bb48ff822
commit
6773017270
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user