Draw attention even if notifications are disabled
This commit is contained in:
parent
e2392433e0
commit
6323aedd9b
1 changed files with 8 additions and 8 deletions
|
@ -124,6 +124,14 @@
|
||||||
userSetting,
|
userSetting,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const shouldDrawAttention = storage.get(
|
||||||
|
'notification-draw-attention',
|
||||||
|
true
|
||||||
|
);
|
||||||
|
if (shouldDrawAttention) {
|
||||||
|
drawAttention();
|
||||||
|
}
|
||||||
|
|
||||||
if (status.type !== 'ok') {
|
if (status.type !== 'ok') {
|
||||||
window.log.info(
|
window.log.info(
|
||||||
`Not updating notifications; notification status is ${status.type}. ${
|
`Not updating notifications; notification status is ${status.type}. ${
|
||||||
|
@ -191,14 +199,6 @@
|
||||||
notificationMessage = i18n('newMessage');
|
notificationMessage = i18n('newMessage');
|
||||||
}
|
}
|
||||||
|
|
||||||
const shouldDrawAttention = storage.get(
|
|
||||||
'notification-draw-attention',
|
|
||||||
true
|
|
||||||
);
|
|
||||||
if (shouldDrawAttention) {
|
|
||||||
drawAttention();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.lastNotification = window.Signal.Services.notify({
|
this.lastNotification = window.Signal.Services.notify({
|
||||||
title: notificationTitle,
|
title: notificationTitle,
|
||||||
icon: notificationIconUrl,
|
icon: notificationIconUrl,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue