* Fix DND/Focus mode not silencing new mail sounds on macOS 12+
Update macos-notification-state from v1.3.6 to v3.0.0 to add proper
support for macOS Focus mode (which replaced Do Not Disturb in macOS 12).
The old version did not detect Focus mode on macOS 12+, causing sounds
to play even when the user had DND/Focus enabled.
The v3.0.0 API change requires async handling since getDoNotDisturb()
now returns a Promise, so update doNotDisturb() and displayNotification()
to be async, along with their callers in the unread-notifications package.
Fixes: https://community.getmailspring.com/t/notifications-do-not-respect-focus-mode-on-macos/9737
* Silence all sounds when macOS Focus/DND mode is enabled
Move the Do Not Disturb check into SoundRegistry.playSound() so that
all sounds are silenced when Focus mode is active, not just the new
mail notification sound. This affects:
- New mail sound
- Send button click sound ('hit-send')
- Mail sent sound ('send')
This is more consistent with user expectations - when DND is enabled,
no sounds should play from the app.
* Patches from local testing
---------
Co-authored-by: Claude <noreply@anthropic.com>
commit 3c10d22199ea6428a6b45c6361d281b1d281ef4f
Author: Ben Gotow <ben@foundry376.com>
Date: Fri Jan 19 08:10:43 2018 -0800
Small fixes
commit e7d4ba85eb011a6fd58b57e079bf3a19c19126d8
Author: Ben Gotow <ben@foundry376.com>
Date: Thu Jan 18 23:47:03 2018 -0800
Rewrite UnsafeComponent using Error Boundaries
commit aa772694fdee6c57887b75b3abb2e654e146fab5
Author: Ben Gotow <ben@foundry376.com>
Date: Thu Jan 18 23:15:53 2018 -0800
Remove GeneratedForm
commit f9ea4296f07d446f942dfc2532deea37db43ddac
Author: Ben Gotow <ben@foundry376.com>
Date: Thu Jan 18 23:08:45 2018 -0800
Fully remove calendar related dead code and spec_disabled
It’s making it hard to see what I need to edit and what I don’t care about
commit 6192ce6073244bc66b7908b66b5033d34e947efb
Author: Ben Gotow <ben@foundry376.com>
Date: Thu Jan 18 23:08:16 2018 -0800
Bump to React 16.2 🎉