Skip to content

Commit ce720e5

Browse files
Merge pull request #53365 from nextcloud/backport/53314/stable31
[stable31] fix(notifications): Fix check for hasNotifiers when all apps use Regi…
2 parents 5bc4167 + 349196d commit ce720e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/private/Notification/Manager.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ public function createNotification(): INotification {
209209
* @since 8.2.0
210210
*/
211211
public function hasNotifiers(): bool {
212-
return !empty($this->notifiers) || !empty($this->notifierClasses);
212+
return !empty($this->notifiers)
213+
|| !empty($this->notifierClasses)
214+
|| (!$this->parsedRegistrationContext && !empty($this->coordinator->getRegistrationContext()->getNotifierServices()));
213215
}
214216

215217
/**

0 commit comments

Comments
 (0)