fixed notification new app message count

This commit is contained in:
Cüneyt Şentürk 2021-06-28 18:46:54 +03:00
parent 293a659f22
commit 0cae8df08d

View File

@ -72,8 +72,10 @@ class Header
$new_apps = $this->getNotifications('new-apps'); $new_apps = $this->getNotifications('new-apps');
if ($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)) { if (setting('notifications.' . user()->id . '.' . $new_app->alias)) {
unset($new_apps[$key]);
continue; continue;
} }