Index: lib/notificationHelper.js |
diff --git a/lib/notificationHelper.js b/lib/notificationHelper.js |
index 2dc0ce900dcac3aadff84bbe881c3931a9bd341a..e4fb84b49fa31a408c2e8949b87f6eb986c048de 100644 |
--- a/lib/notificationHelper.js |
+++ b/lib/notificationHelper.js |
@@ -33,6 +33,7 @@ let displayMethods = Object.create(null); |
displayMethods.critical = ["icon", "notification", "popup"]; |
displayMethods.question = ["notification"]; |
displayMethods.normal = ["notification"]; |
+displayMethods.relentless = ["notification"]; |
displayMethods.information = ["icon", "popup"]; |
function prepareNotificationIconAndPopup() |
@@ -86,7 +87,7 @@ function getNotificationButtons(notificationType, message) |
} |
]; |
} |
- if (notificationType != "critical") |
+ if (["critical", "relentless"].indexOf(notificationType) == -1) |
{ |
buttons.push({ |
type: "configure", |
@@ -226,6 +227,9 @@ function showNotification(notification) |
} |
} |
prepareNotificationIconAndPopup(); |
+ |
+ if (notification.type !== "question") |
+ NotificationStorage.markAsShown(notification.id); |
}; |
/** |