Add check for minimized notification (#6431)

This commit is contained in:
Khalid Adil
2023-03-17 10:46:09 -05:00
committed by GitHub
parent 6ac7f24c63
commit eff0cc96b9

View File

@ -415,7 +415,10 @@ export default class NotificationAPI extends EventEmitter {
for (; i < this.notifications.length; i++) { for (; i < this.notifications.length; i++) {
notification = this.notifications[i]; notification = this.notifications[i];
if (!notification.model.minimized const isNotificationMinimized = notification.model.minimized
|| notification?.model?.options?.minimized;
if (!isNotificationMinimized
&& notification !== this.activeNotification) { && notification !== this.activeNotification) {
return notification; return notification;
} }