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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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