A recent change that allowed the macOS app to correctly use the FocusStatus to prevent notifications under DND was completely stopping notifications if permission wasn't given. This was caused by the app not performing any error handling from the DND check, which would throw an error if the app wasn't authorized to check the status.
This PR adds that error handling, and logs a warning in the logs to denote that the check failed.
Summary
A recent change that allowed the macOS app to correctly use the
FocusStatus
to prevent notifications under DND was completely stopping notifications if permission wasn't given. This was caused by the app not performing any error handling from the DND check, which would throw an error if the app wasn't authorized to check the status.This PR adds that error handling, and logs a warning in the logs to denote that the check failed.
Ticket Link
Closes https://github.com/mattermost/desktop/issues/3052 https://mattermost.atlassian.net/browse/MM-58455