Desktop notification isn't closed after message is read in app (on Gnome)
Steps to reproduce
- I receive a new message and a desktop notification is displayed
- I open the app via the dock icon (not via the notification)
- I read the message
Outcome
What did you expect?
I'd expect that the app tracks the relation between message a notification and withdraws/closes the notification related to the message once the message is read. (Apparently, Gnome uses the Freedesktop Notifications specification, which supports closing notifications.)
What happened instead?
The desktop notification persists. Desktop notifications accumulate over time and the unread message count badge at the dock icon shows a false indication for unread messages.
Operating system
Ubuntu 25.04 / Gnome
Application version
Element version: 1.11.101
How did you install the app?
via apt package manager
Homeserver
No response
Will you send logs?
No
We do try to close the notification, its possible that Electron does not wire this up in Linux though there is no note in the docs about this https://www.electronjs.org/docs/latest/api/notification#notificationclose
Seems like you're talking about multiple issues here:
- You expect the notifications shown to be immediately dismissed once you open the app and see the message.
- Dock icon shows the incorrect count.
1. You expect the notifications shown to be immediately dismissed once you open the app and see the message. 2. Dock icon shows the incorrect count.
Yes, that's right. Although to clarify: I think 1. is the cause and 2. is only the effect of 1. because the badge count is actually consistent with the notification count.
This happens on MATE Desktop environment (Debian 13 if that matters), always at least one unread notification even if there are no new messages. Attempting to "Mark All As Read" under Settings -> Notifications doesn't help.