Preact: Fix chatroom notification count in mobile (#2507)
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled

This commit is contained in:
Aurastic 2025-08-10 05:30:53 +05:30 committed by GitHub
parent 8bb48ff822
commit 6773017270
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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++;
}