diff --git a/app/internal_packages/unread-notifications/lib/main.es6 b/app/internal_packages/unread-notifications/lib/main.es6 index 355de3978..adab6e01b 100644 --- a/app/internal_packages/unread-notifications/lib/main.es6 +++ b/app/internal_packages/unread-notifications/lib/main.es6 @@ -106,6 +106,9 @@ export class Notifier { NativeNotifications.displayNotification({ title: `${this.unnotifiedQueue.length} Unread Messages`, tag: 'unread-update', + onActivate: () => { + AppEnv.displayWindow(); + }, }); this.unnotifiedQueue = []; } diff --git a/app/src/native-notifications.es6 b/app/src/native-notifications.es6 index 3f0e0d68c..4074fa368 100644 --- a/app/src/native-notifications.es6 +++ b/app/src/native-notifications.es6 @@ -22,7 +22,7 @@ class NativeNotifications { }); } } - displayNotification({ title, subtitle, body, tag, canReply, onActivate } = {}) { + displayNotification({ title, subtitle, body, tag, canReply, onActivate = () => {} } = {}) { let notif = null; if (MacNotifierNotification) {