summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/notification-controller.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/notification-controller.js b/app/notification-controller.js
index ff2c80db50..eafdea0445 100644
--- a/app/notification-controller.js
+++ b/app/notification-controller.js
@@ -7,6 +7,12 @@ export default class NotificationController {
show(message: string) {
const lastNotification = this._activeNotification;
+ const sameAsLastNotification = lastNotification && lastNotification.body === message;
+
+ if (sameAsLastNotification) {
+ return;
+ }
+
const newNotification = new Notification(remote.app.getName(), { body: message, silent: true });
this._activeNotification = newNotification;