fix(notifications): Fix check for hasNotifiers when all apps use RegistrationContext

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/53365/head
Joas Schilling 12 months ago committed by Andy Scherzinger
parent 9fdc7fb566
commit 349196d9ec
  1. 4
      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()));
}
/**

Loading…
Cancel
Save