Draw attention even if notifications are disabled
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user