We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93c8c15 commit ca172baCopy full SHA for ca172ba
src/core/pushnotifications/providers/delegate.ts
@@ -124,7 +124,10 @@ export class CorePushNotificationsDelegate {
124
* @return Promise resolved with boolean: whether the handler feature is disabled.
125
*/
126
protected isFeatureDisabled(handler: CorePushNotificationsClickHandler, siteId: string): Promise<boolean> {
127
- if (handler.featureName) {
+ if (!siteId) {
128
+ // Notification doesn't belong to a site. Assume all handlers are enabled.
129
+ return Promise.resolve(false);
130
+ } else if (handler.featureName) {
131
// Check if the feature is disabled.
132
return this.sitesProvider.isFeatureDisabled(handler.featureName, siteId);
133
} else {
0 commit comments