From 0cae8df08d046639667bf179c4908a58112ddc9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Mon, 28 Jun 2021 18:46:54 +0300 Subject: [PATCH] fixed notification new app message count --- app/Http/ViewComposers/Header.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/ViewComposers/Header.php b/app/Http/ViewComposers/Header.php index 33928dab5..b379a9233 100644 --- a/app/Http/ViewComposers/Header.php +++ b/app/Http/ViewComposers/Header.php @@ -72,8 +72,10 @@ class Header $new_apps = $this->getNotifications('new-apps'); if ($new_apps) { - foreach ($new_apps as $new_app) { + foreach ($new_apps as $key => $new_app) { if (setting('notifications.' . user()->id . '.' . $new_app->alias)) { + unset($new_apps[$key]); + continue; }