From 172bda098ededa6f38a60740bd6cd396fc221544 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 5 Apr 2018 14:37:22 +0200 Subject: [PATCH] * Notifications: On verbosity of high, alert only if the message is unseen. --- notifications/inc/class.notifications_ajax.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/notifications/inc/class.notifications_ajax.inc.php b/notifications/inc/class.notifications_ajax.inc.php index fe702f5e1e..8057e20111 100644 --- a/notifications/inc/class.notifications_ajax.inc.php +++ b/notifications/inc/class.notifications_ajax.inc.php @@ -209,7 +209,10 @@ class notifications_ajax { $this->response->apply('app.notifications.bell', array('active')); break; case 'high': - $this->response->alert(lang('EGroupware has notifications for you')); + if (empty($notification['notify_status']) || $notification['notify_status'] === "UNSEEN") + { + $this->response->alert(lang('EGroupware has notifications for you')); + } $this->response->apply('app.notifications.display'); break; case 'medium':