Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unread Notifications Not Cleared on Gnome Desktop After Reading Messages in Mattermost #3230

Open
6 tasks done
leinardi opened this issue Nov 27, 2024 · 1 comment
Open
6 tasks done

Comments

@leinardi
Copy link

leinardi commented Nov 27, 2024

Checks before filing an issue

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

@devinbinnie
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants