Merge pull request #53365 from nextcloud/backport/53314/stable31

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

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