Skip to content

A platform for community discussion. Free, open, simple.

DEV: review follow up (#27128)

Joffrey JAFFEUX88ebd4c11f70
diff --git a/app/assets/javascripts/discourse/app/lib/desktop-notifications.js b/app/assets/javascripts/discourse/app/lib/desktop-notifications.js
index 54765ed6386..fbe5b94f972 100644
--- a/app/assets/javascripts/discourse/app/lib/desktop-notifications.js
+++ b/app/assets/javascripts/discourse/app/lib/desktop-notifications.js
@@ -171,7 +171,7 @@ function canUserReceiveNotifications(user) {
// Call-in point from message bus
async function onNotification(data, siteSettings, user, appEvents) {
if (!canUserReceiveNotifications(user)) {
- return;
+ return false;
}
if (!liveEnabled) {