From 6323aedd9b660a069031115fd0c5fb738eb89f01 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Thu, 9 Sep 2021 17:32:12 -0700 Subject: [PATCH] Draw attention even if notifications are disabled --- js/notifications.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/notifications.js b/js/notifications.js index 4e0dcf637c..479b7bb886 100644 --- a/js/notifications.js +++ b/js/notifications.js @@ -124,6 +124,14 @@ userSetting, }); + const shouldDrawAttention = storage.get( + 'notification-draw-attention', + true + ); + if (shouldDrawAttention) { + drawAttention(); + } + if (status.type !== 'ok') { window.log.info( `Not updating notifications; notification status is ${status.type}. ${ @@ -191,14 +199,6 @@ notificationMessage = i18n('newMessage'); } - const shouldDrawAttention = storage.get( - 'notification-draw-attention', - true - ); - if (shouldDrawAttention) { - drawAttention(); - } - this.lastNotification = window.Signal.Services.notify({ title: notificationTitle, icon: notificationIconUrl,