Draw attention even if notifications are disabled

This commit is contained in:
Scott Nonnenberg 2021-09-09 17:32:12 -07:00 committed by GitHub
parent e2392433e0
commit 6323aedd9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -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,