Skip to content

Commit 2fb8e92

Browse files
Merge pull request #53366 from nextcloud/backport/53314/stable30
[stable30] fix(notifications): Fix check for hasNotifiers when all apps use Regi…
2 parents 58f34c4 + 21f9ea0 commit 2fb8e92

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
@@ -207,7 +207,9 @@ public function createNotification(): INotification {
207207
* @since 8.2.0
208208
*/
209209
public function hasNotifiers(): bool {
210-
return !empty($this->notifiers) || !empty($this->notifierClasses);
210+
return !empty($this->notifiers)
211+
|| !empty($this->notifierClasses)
212+
|| (!$this->parsedRegistrationContext && !empty($this->coordinator->getRegistrationContext()->getNotifierServices()));
211213
}
212214

213215
/**

0 commit comments

Comments
 (0)