#34 - fix notification count

This commit is contained in:
isUnknown 2024-12-17 14:21:33 +01:00
parent 0cf26819ce
commit 1de18c9685
3 changed files with 9 additions and 6 deletions

View file

@ -8,6 +8,7 @@ return function($notificationId) {
$newNotification = null;
foreach ($notifications as $key => $notification) {
if (!isset($notification['id'])) continue;
if ($notification['id'] === $notificationId) {
$notifications[$key]['isRead'] = true;
$newNotification = $notifications[$key];