diff --git a/source/index.ts b/source/index.ts index 9480c04..1236af7 100644 --- a/source/index.ts +++ b/source/index.ts @@ -631,6 +631,10 @@ ipc.answerRenderer( return; } + if (!is.macos && config.get('flashWindowOnMessage')) { + mainWindow.flashFrame(true); + } + const notification = new Notification({ title, body: config.get('notificationMessagePreview') ? body : 'You have a new message', diff --git a/source/menu.ts b/source/menu.ts index aa6f59c..78043a2 100644 --- a/source/menu.ts +++ b/source/menu.ts @@ -431,12 +431,9 @@ Press Command/Ctrl+R in Caprine to see your changes. }, }, { - // TODO: Fix notifications. - // ESTABLISHED FIX: This relies on the main process `notification` event. - // Since we fixed the notification triggers in `source/browser/conversation-list.ts`, this should work downstream. label: 'Flash Window on Message', type: 'checkbox', - visible: is.development, + visible: !is.macos, checked: config.get('flashWindowOnMessage'), click(menuItem) { config.set('flashWindowOnMessage', menuItem.checked);