Do not disturb mode ignored for notifications send via Main.notify or MessageTray.Notification
Affected version
- Arch Linux
- GNOME 3.38
- Issue appears in XOrg and Wayland
Bug summary
The notification send (by gnome-shell-extensions) via Main.notify
or MessageTray.Notification
are always shown if Do Not Disturbed
is enabled.
Steps to reproduce
Use the following code (in a gnome shell extension):
let notification = new MessageTray.Notification(source, 'Test', "details");
notification.setUrgency = Urgency.NORMAL;
Main.messageTray.add(source);
source.showNotification(notification);
What happened
Notifications are shown when Do Not Disturbed
is enabled.
What did you expect to happen
Notifications are hidden when Do Not Disturbed
is enabled.
Further information
Message tray enabled (bell), but notification shown:
I tried to set the urgency level directly, despite it's set to NORMAL by default in messageTray.js, but it didn't change.
So, I guess it's an issue somewhere else? According to @fmuellner in inssue #2148, all notifications with a low or normal priority should be hidden when Do Not Disturb is enabled!?