Skip to content

Commit

Permalink
Merge pull request #75 from IndyDevGuy/master
Browse files Browse the repository at this point in the history
Fixed deleting notifications with NotificationManager->removeNotification() (Issue #74)
  • Loading branch information
maximilienGilet authored Jun 23, 2020
2 parents 5ea43fb + 5f995c6 commit 8317df5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Manager/NotificationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,10 @@ public function removeNotification(array $notifiables, NotificationInterface $no

$event = new NotificationEvent($notification, $notifiable);
$this->dispatcher->dispatch(MgiletNotificationEvents::REMOVED, $event);
$this->flush($flush);
}

$this->deleteNotification($notification);
$this->flush($flush);
}

Expand Down

0 comments on commit 8317df5

Please sign in to comment.