diff options
author | Joas Schilling <coding@schilljs.com> | 2025-06-04 06:32:26 +0200 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2025-06-12 22:00:46 +0200 |
commit | 349196d9ece34ed538ee4fcf5bd2dba25b0ba84f (patch) | |
tree | b346049e99aa4fa9b81dd1439c9e3dd66c217de2 | |
parent | 9fdc7fb566da30746a9a3be5565dbe23bd591ff5 (diff) | |
download | nextcloud-server-backport/53314/stable31.tar.gz nextcloud-server-backport/53314/stable31.zip |
fix(notifications): Fix check for hasNotifiers when all apps use RegistrationContextbackport/53314/stable31
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/private/Notification/Manager.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Notification/Manager.php b/lib/private/Notification/Manager.php index ac287e97048..cdac7655538 100644 --- a/lib/private/Notification/Manager.php +++ b/lib/private/Notification/Manager.php @@ -209,7 +209,9 @@ class Manager implements IManager { * @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())); } /** |