From 21f9ea09deeefa2d960f90c2d3e7e141beedd3e5 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 4 Jun 2025 06:32:26 +0200 Subject: [PATCH] fix(notifications): Fix check for hasNotifiers when all apps use RegistrationContext Signed-off-by: Joas Schilling --- lib/private/Notification/Manager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/private/Notification/Manager.php b/lib/private/Notification/Manager.php index 8edbca0380d1c..266562d9ada3d 100644 --- a/lib/private/Notification/Manager.php +++ b/lib/private/Notification/Manager.php @@ -207,7 +207,9 @@ public function createNotification(): INotification { * @since 8.2.0 */ public function hasNotifiers(): bool { - return !empty($this->notifiers) || !empty($this->notifierClasses); + return !empty($this->notifiers) + || !empty($this->notifierClasses) + || (!$this->parsedRegistrationContext && !empty($this->coordinator->getRegistrationContext()->getNotifierServices())); } /**