desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Enhancement]: Unread Notifications Not Cleared on Gnome Desktop After Reading Messages in Mattermost

Open leinardi opened this issue 1 year ago • 3 comments

Checks before filing an issue

  • [X] This issue doesn't reproduce on web browsers (such as in Chrome). If it does, issue reports go to the Mattermost Server repository.
  • [X] I have checked the issue tracker and have not found an issue that matches the one I'm filing.
  • [X] This issue is not a troubleshooting question. Troubleshooting questions go here: https://forum.mattermost.com/c/trouble-shoot/16.
  • [X] This issue is not a feature request. You can request features and make product suggestions here: https://mattermost.com/suggestions/.
  • [X] This issue reproduces on the most recent stable version, or the most recent prerelease version of the Mattermost Desktop App.
  • [X] I have read the contribution guidelines.

Mattermost Desktop Version

5.10.1

Operating System

Ubuntu 24.04.1 LTS

Mattermost Server Version

9.11.1

Steps to reproduce

  1. Open the Mattermost desktop client on a system running Gnome Desktop.
  2. Receive a new message in any channel or direct message.
  3. Observe that a notification appears in the Gnome notification area and the application counter in the Gnome docking area is incremented.
  4. Open the Mattermost client and read the new message.

Expected behavior

When a new message notification is received, and the message is subsequently read within the Mattermost client:

  • The notification in the Gnome notification area should automatically clear.
  • The application counter in the Gnome docking area should decrease or reset to reflect the actual unread message count.

Observed behavior

  • The notification in the Gnome notification area remains visible, even after the message is read.
  • The application counter in the Gnome docking area does not update and continues to reflect old notifications.
  • This behavior causes the counter to increment with every new notification, up to a maximum of 3 (as limited by Gnome), leading to confusion about unread messages.

Log Output

[2024-11-22 18:37:00.077] [warn]  [i18nManager] Failed to set new language IT
[2024-11-22 18:37:00.157] [info]  [App.Config] config.autostart has been configured: true
[2024-11-22 18:37:01.169] [info]  [App.Config] config.autostart has been configured: true
[2024-11-25 09:02:53.257] [error] Logger Log level set to: info
[2024-11-25 09:02:53.469] [warn]  [App.Initialize] Current working directory is /home/rleinardi, changing into /opt/Mattermost
[2024-11-25 09:02:53.573] [info]  [App.Config] config.autostart has been configured: true
[2024-11-25 09:02:53.645] [info]  [App.Initialize] Autoupgrade disabled: false
[2024-11-25 09:02:53.707] [info]  [ServerDropdownView] init
[2024-11-25 09:02:53.747] [warn]  [i18nManager] Failed to set new language en-US
[2024-11-25 09:02:53.747] [warn]  [i18nManager] Failed to set new language IT
[2024-11-25 09:02:53.821] [info]  [App.Config] config.autostart has been configured: true
[2024-11-25 09:02:54.863] [info]  [App.Config] config.autostart has been configured: true
[2024-11-25 09:22:05.305] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 09:22:05.354] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 09:22:05.917] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 09:22:05.925] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 09:22:05.932] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 09:22:05.942] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 09:22:05.967] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 10:12:57.135] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 10:37:16.690] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 10:37:16.698] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 10:37:16.704] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 10:37:16.715] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 10:37:16.735] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 10:37:16.769] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 11:03:16.926] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 11:03:16.931] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 11:03:16.934] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 11:03:16.939] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 11:03:16.950] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-25 11:03:16.974] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 08:34:34.778] [error] Logger Log level set to: info
[2024-11-27 08:34:34.995] [warn]  [App.Initialize] Current working directory is /home/rleinardi, changing into /opt/Mattermost
[2024-11-27 08:34:35.098] [info]  [App.Config] config.autostart has been configured: true
[2024-11-27 08:34:35.158] [info]  [App.Initialize] Autoupgrade disabled: false
[2024-11-27 08:34:35.212] [info]  [ServerDropdownView] init
[2024-11-27 08:34:35.258] [warn]  [i18nManager] Failed to set new language en-US
[2024-11-27 08:34:35.258] [warn]  [i18nManager] Failed to set new language IT
[2024-11-27 08:34:35.345] [info]  [App.Config] config.autostart has been configured: true
[2024-11-27 08:34:36.411] [info]  [App.Config] config.autostart has been configured: true
[2024-11-27 08:34:47.815] [error] Logger Log level set to: info
[2024-11-27 08:34:47.919] [warn]  [App.Initialize] Current working directory is /home/rleinardi, changing into /opt/Mattermost
[2024-11-27 08:38:10.732] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 08:39:43.159] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 09:08:43.935] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 09:08:43.969] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 09:21:42.493] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 09:21:42.499] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 09:21:42.504] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 09:21:42.515] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 09:21:42.549] [error] [WebContentsEventM...] [Roberto Leinardi] [TAB_MESSAGING] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:00:10.062] [error] Logger Log level set to: info
[2024-11-27 11:00:10.121] [info]  [Config] Migrating config items successfully.
[2024-11-27 11:00:10.125] [warn]  [App.Initialize] Current working directory is /home/rleinardi, changing into /opt/Mattermost
[2024-11-27 11:00:10.199] [info]  [App.Config] config.autostart has been configured: true
[2024-11-27 11:00:10.249] [info]  [App.Initialize] Autoupgrade disabled: false
[2024-11-27 11:00:10.287] [info]  [ServerDropdownView] init
[2024-11-27 11:00:10.327] [warn]  [i18nManager] Failed to set new language en-US
[2024-11-27 11:00:10.327] [warn]  [i18nManager] Failed to set new language IT
[2024-11-27 11:00:10.424] [info]  [App.Config] config.autostart has been configured: true
[2024-11-27 11:00:10.466] [error] [App.Utils] clearAppCache TypeError: Object has been destroyed
[2024-11-27 11:00:14.565] [info]  [App.Config] config.autostart has been configured: true
[2024-11-27 11:01:32.094] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:01:32.102] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:01:32.110] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:01:32.127] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:01:32.162] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:02:04.299] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:02:04.305] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:02:04.312] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:02:04.324] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:02:04.349] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:02:11.830] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:02:11.835] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:02:11.840] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:02:11.852] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:02:11.876] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:03:38.818] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:03:38.824] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:03:38.838] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:03:38.853] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:03:38.877] [error] [WebContentsEventM...] [renderer] Error: <svg> attribute height: Expected length, "auto".
[2024-11-27 11:05:30.967] [debug] Diagnostics.run
[2024-11-27 11:05:30.968] [debug] Diagnostics.initializeValues
[2024-11-27 11:05:30.968] [debug] Diagnostics.getStepCount { stepsCount: 12 }
[2024-11-27 11:05:30.968] [debug] Diagnostics sendNotification DiagnosticsStarted
[2024-11-27 11:05:30.968] [info]  Diagnostics.executeSteps Started

Additional Information

The notifications are still shown: image image Despite no unread messages: image

leinardi avatar Nov 27 '24 10:11 leinardi

This isn't something our app currently supports on any OS, so it would be a feature request. I've looked into what this would take to achieve in the past and it would also likely require a server upgrade, meaning that it would only work if both the server and Desktop App supported it.

Re-labelled as Enhancement

devinbinnie avatar Nov 27 '24 14:11 devinbinnie

For a chat software I am surprised how this has not been an issue. It is increasingly turning my team absolutely nuts. Glad it was reported.

We are being indirectly trained to avoid tagging people in our office, because people are annoyed about having to:

  1. See a notification and a counter pop-up
  2. Go to the channel they were mentioned in
  3. Not seeing the counter removed until you exit the channel and re-enter

wisewtf avatar Mar 27 '25 14:03 wisewtf

MM 5.12.1 Ubuntu 24.04.3 LTS

Really annoying, hope it'll get fixed soon

Aterniad avatar Sep 25 '25 09:09 Aterniad