[FIX] Stop adding push messages to queue if push is disabled (#18830)

pull/18956/head^2
pierre-lehnen-rc 5 years ago committed by GitHub
parent c021c57984
commit c9bdb98e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/lib/server/functions/notifications/mobile.js

@ -81,6 +81,10 @@ export function shouldNotifyMobile({
roomType,
isThread,
}) {
if (settings.get('Push_enable') !== true) {
return false;
}
if (disableAllMessageNotifications && mobilePushNotifications == null && !isHighlighted && !hasMentionToUser && !hasReplyToThread) {
return false;
}

Loading…
Cancel
Save