teams-for-linux icon indicating copy to clipboard operation
teams-for-linux copied to clipboard

Tray Icon not displaying unread messages

Open jftempo opened this issue 2 years ago • 8 comments

Hi, Sometimes the tray icon does not display the notifications (unread messages) until I click on the Team Window to put it in foreground, then all notifications are shown. This is a random issue.

Could be linked to this error displayed in the console: (teams-for-linux:134654): libnotify-WARNING **: 09:42:42.489: Failed to connect to proxy

I'm using v1.0.24 on Ubuntu 20.04 and XFCE. Thanks.

jftempo avatar Jun 17 '22 08:06 jftempo

Same issue here actually and its a big problem for me. I also randomly don't get notifications if Teams is running in the background. When I put the Teams window into the foreground for some time, the notifications are displayed.

At least for me, this is a new issue that I started seeing about 1.5 weeks ago. The likely trigger is probably a change on the Microsoft side (changes in the HTML or the scripts).

Do you have any idea how I could debug this issue?

chrihoff avatar Jun 21 '22 15:06 chrihoff

I believe this is a limitation on electron and how it handles the "focus". Basically the browser still think is in focus when you got it minimised. Can you confirm this is basically what you are seeing? Basically, you would get notifications for the channel you are in, as it thinks you are "seeing it"

IsmaelMartinez avatar Jun 24 '22 08:06 IsmaelMartinez

Hi @IsmaelMartinez, I know this limitation, the workaround is to leave the Chat panel before minimizing Teams. My issue happened even when the Chat panel is not opened. And I confirm what @chrihoff said: "I started seeing about 1.5 weeks ago".

jftempo avatar Jun 24 '22 08:06 jftempo

Thanks @IsmaelMartinez for your ideas.

Meanwhile, I also started Teams in my browser (chromium) and noticed the exact same behaviour. I would expect the title of the browser tab to change to show e.g. "(1)" in the beginning of the window title if there is one new notification / message from someone. But this only happened once I put the browser tab in focus. The title didn't change as long as the browser tab was running in the background. In that sense, it is very similar to the problem I am now seeing with Electron.

Yesterday, I even saw the same problem with the official teams client from Microsoft for Linux: notifications were sporadically only visible after the Teams app was in focus.

Since I have observed the issue now on so many different clients (browser, teams-for-linux and the official Linux client), I am starting to suspect that its a new MS Teams issue. For now, I have enabled the developer preview of Teams (Settings -> About -> Developer Preview) to see if maybe the problem was fixed there.

chrihoff avatar Jun 24 '22 09:06 chrihoff

if it happens on the browser, then is MS issue. Apologies but little we can do from here :/ (Not the 1st time something liek this happens)

IsmaelMartinez avatar Jun 27 '22 13:06 IsmaelMartinez

@jftempo @chrihoff what I found is that it's related to icon theme. Not sure how to fix.

jijojosephk avatar Aug 03 '22 08:08 jijojosephk

Duplicate of #506

jijojosephk avatar Aug 06 '22 04:08 jijojosephk

I can confirm that the tray icon works as expected both on the Flatpak and .deb version for me

System: Pop!Os 22.04 Gnome 42.4 on X11

It might be system specific? Post your combination of OS, version, Desktop environement with version and Display manager... it might be helpfull for the devs :)

le-patenteux avatar Sep 15 '22 16:09 le-patenteux

What I found is interesting. It has something to do with the binary name. teams-for-linux some how conflicts with icon theming. As far as I know this and #506 can't be fixed unless the binary name is changed.

jijojosephk avatar Sep 29 '22 08:09 jijojosephk

It's not related to flatpak.

jijojosephk avatar Sep 29 '22 08:09 jijojosephk

Closing due inactivity. Ping if required reopen

IsmaelMartinez avatar Mar 22 '23 14:03 IsmaelMartinez

FYI, thanks to the recent update to a newer Electron version I was for the first time able to see an unread message indicator on the tray icon on KDE, using the Tela icon theme and the Flatpak version of teams-for-linux. :)

prettybits avatar Jul 10 '23 13:07 prettybits

FYI, thanks to the recent update to a newer Electron version I was for the first time able to see an unread message indicator on the tray icon on KDE, using the Tela icon theme and the Flatpak version of teams-for-linux. :)

Lifetime achievement :laughing:

jijojosephk avatar Jul 10 '23 13:07 jijojosephk

FYI, thanks to the recent update to a newer Electron version I was for the first time able to see an unread message indicator on the tray icon on KDE, using the Tela icon theme and the Flatpak version of teams-for-linux. :)

Also now other DEs started crying :rofl:

jijojosephk avatar Jul 10 '23 16:07 jijojosephk