Merge pull request #53314 from nextcloud/bugfix/53157/fix-hasNotifier-check

fix(notifications): Fix check for hasNotifiers when all apps use Regi…
This commit is contained in:
Joas Schilling 2025-06-04 09:00:02 +02:00 committed by GitHub
commit 54555209ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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