Merge pull request #53366 from nextcloud/backport/53314/stable30

[stable30] fix(notifications): Fix check for hasNotifiers when all apps use Regi…
pull/53533/head
Joas Schilling 2025-06-16 16:37:00 +07:00 committed by GitHub
commit 2fb8e92067
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

@ -207,7 +207,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()));
}
/**