Skip to content

Commit

Permalink
LSO: 43208, fix sending a globalScreen message after completing a lea…
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastocker committed Dec 19, 2024
1 parent 662b182 commit cc1759d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getNotifications(): array
{
$current_user = $this->dic['ilUser'];

if ($current_user->getId() === 0 || $current_user->isAnonymous()) {
if ($current_user->getId() === 0 || $current_user->isAnonymous()) {
return [];
}

Expand All @@ -55,7 +55,7 @@ public function getNotifications(): array
$lng->loadLanguageModule('lso');


$group = $this->globalScreen()->notifications()->factory()->standardGroup(
$group = $this->globalScreen()->notifications()->factory()->standardGroup(
$this->if->identifier('lso_bucket_group')
)
->withTitle($lng->txt('obj_lso'));
Expand All @@ -70,7 +70,6 @@ public function getNotifications(): array
$this->if->identifier('lso_bucket')
)
->withNotificationItem($notification_item)
->withNewAmount(count($notifications))
->withClosedCallable(
function () use ($current_user, $osd_notification_handler): void {
$current_user->writePref(self::NOTIFICATION_TIME_PREFERENCE_KEY, (string) time());
Expand All @@ -80,6 +79,7 @@ function () use ($current_user, $osd_notification_handler): void {
);
}
)
->withNewAmount(count($notifications))
);
}

Expand Down

0 comments on commit cc1759d

Please sign in to comment.