From 88ebd4c11f702a47e221eef96c58f763b98ce701 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 22 May 2024 10:33:05 +0200 Subject: [PATCH] DEV: review follow up (#27128) --- .../javascripts/discourse/app/lib/desktop-notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {