From 85ef4c6d91a24e1d0c9bfe9a69837668781bf904 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Fri, 27 Oct 2017 16:08:15 +1300 Subject: [PATCH] Ensure the click event is only dispatched on ContentsClicked activation type --- brightray/browser/mac/notification_center_delegate.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brightray/browser/mac/notification_center_delegate.mm b/brightray/browser/mac/notification_center_delegate.mm index 834b9e5ee43b..d8a8c9018347 100644 --- a/brightray/browser/mac/notification_center_delegate.mm +++ b/brightray/browser/mac/notification_center_delegate.mm @@ -33,7 +33,7 @@ notification->NotificationReplied([notif.response.string UTF8String]); } else if (notif.activationType == NSUserNotificationActivationTypeActionButtonClicked) { notification->NotificationButtonClicked(); - } else { + } else if (notif.activationType == NSUserNotificationActivationTypeContentsClicked) { notification->NotificationClicked(); } }