'Draw attention to this window' option is now defaulted to 'false'

This commit is contained in:
Scott Nonnenberg 2023-01-31 18:03:44 -08:00 committed by GitHub
parent 8ac4786040
commit b062409bb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@
"browserslist": "last 1 chrome versions",
"main": "app/main.js",
"scripts": {
"postinstall": "yarn build:acknowledgments && patch-package && yarn electron:install-app-deps && rimraf node_modules/dtrace-provider",
"postinstall": "yarn build:acknowledgments && patch-package && yarn electron:install-app-deps",
"postuninstall": "yarn build:acknowledgments",
"start": "electron .",
"generate": "npm-run-all build-protobuf build:esbuild sass get-expire-time copy-components",

View file

@ -256,7 +256,7 @@ class NotificationService extends EventEmitter {
const shouldDrawAttention = storage.get(
'notification-draw-attention',
true
false
);
if (shouldDrawAttention) {
log.info('NotificationService: drawing attention');

View file

@ -325,7 +325,7 @@ export function createIPCEvents(
setNotificationSetting: (value: 'message' | 'name' | 'count' | 'off') =>
window.storage.put('notification-setting', value),
getNotificationDrawAttention: () =>
window.storage.get('notification-draw-attention', true),
window.storage.get('notification-draw-attention', false),
setNotificationDrawAttention: value =>
window.storage.put('notification-draw-attention', value),
getAudioNotification: () => window.storage.get('audio-notification'),