* Notifications: On verbosity of high, alert only if the message is unseen.

This commit is contained in:
Hadi Nategh 2018-04-05 14:37:22 +02:00
parent d9d051a97e
commit 172bda098e

View File

@ -209,7 +209,10 @@ class notifications_ajax {
$this->response->apply('app.notifications.bell', array('active')); $this->response->apply('app.notifications.bell', array('active'));
break; break;
case 'high': 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'); $this->response->apply('app.notifications.display');
break; break;
case 'medium': case 'medium':