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

Desktop client on Linux should set "demands_attention" flag or change the icon on unread messages #715

Closed
mvintila opened this issue Mar 15, 2017 · 16 comments · Fixed by #1683

Comments

@mvintila
Copy link

Description

On Ubuntu Linux 16.04 with Unity, using the Desktop client, there is no indication of unread messages, neither in the top "Systray" icon nor on the left (by default) Launcher icon.

It would be ideal if Riot would at least set "demands_attention" window flag on new messages or maybe change the icon to include the number of unread messages.

If you miss the initial desktop notification or the notification sound, there's no way of knowing that you have unread messages unless you periodically check in the app window itself.

Version information

  • Platform: Desktop
  • OS: Ubuntu Linux 16.04 using stock Unity
  • Version: 0.9.7
@mvintila
Copy link
Author

I see that the feature is called "notification badges" and it seems to be present. However, this does not work at all on Ubuntu 16.04 with default Unity.

Probably the scope of this bug is just Ubuntu/Unity.

@TheLastProject
Copy link

TheLastProject commented Mar 15, 2017 via email

@xavierzwirtz
Copy link

This would be nice on Windows as well. At this point, if you are away from your computer when a message is received there is no indication that you should check Riot for new messages.

@kykc
Copy link

kykc commented Apr 17, 2017

I second this, there's no notification of unread messages if I've missed Desktop Notification popup for some reason. No blinking for attention and no unread message count badge on taskbar

  • Platform: Desktop
  • OS: Windows 10
  • Version: 0.9.7 as chrome app in separate window

@croulibri
Copy link

On Debian 8 with KDE dekstop, there is no notification of unread message either with the Riot desktop app (from I start using Riot in 6 months ago until the current 0.9.10).

The icon of systray is not displaying properly, we can only see the top left corner of the Riot icon, leaving a kind of "blurred pink and green square" as icon :-(

@t3chguy
Copy link
Member

t3chguy commented May 24, 2017

@croulibri the broken tray icon is an issue with libappindicator and electron

@t3chguy
Copy link
Member

t3chguy commented May 24, 2017

Though with the latest version there is now a notifications count in the tray icon, so I believe this may be able to be closed.

@TheLastProject
Copy link

I'd still much prefer the demand_attention flag. I constantly miss the tray icon thing for Telegram as well, and I'd prefer to go back to completely disabling tray icons.

@t3chguy
Copy link
Member

t3chguy commented May 24, 2017

@TheLastProject I do not see a way to do this with Electron, nothing in the docs seems to mention it

@TheLastProject
Copy link

@t3chguy
Copy link
Member

t3chguy commented May 24, 2017

@TheLastProject That is Windows only and already in use in the latest version.

@syhe
Copy link

syhe commented Aug 23, 2018

@t3chguy mattermost/desktop#200 makes me believe that this is not Windows-only.

@t3chguy
Copy link
Member

t3chguy commented Aug 23, 2018

The previous link no longer includes flash frame (which mentioned it as Windows specific) and it is now in https://github.com/electron/electron/blob/a67c992c3699a60c1bec3e2b23b3033591d8bcf3/docs/api/browser-window.md#winflashframeflag and seems to no longer be windows specific

@syhe
Copy link

syhe commented Aug 23, 2018

Seems like a documentation error.

The page you referenced was copied from the Wiki in 2013 and never included a hint that this function was Windows-only.

The tutorial that was referenced earlier got the flashFrame(true) section in 2016 and said it was Windows-only from the start.

Then there ist electron/electron#10258 from 2017 where someone found out it was not supported under OS X.

I tried searching the Electron / Chromium code bases but could not find the platform specific implementations of flashFrame() and since when they have been there.

It's confusing that there is a PR in Mattermost from July 2016 that says it support Linux, whereas the Tutorial, saying it's Windows-only, was added in October 2016.

I guess one is supposed to just test it and hope it works at this point?

@Pointedstick
Copy link

Pointedstick commented Feb 23, 2019

It would be nice to have this feature because when your unread notification count appears as a badge on the app icon itself, then you could disable the System Tray icon without losing any functionality (once element-hq/element-web#8904 is implemented, that is!).

Telegram now supports this and it's really nice. I have Telegram pinned to my KDE Plasma Task Manager and the pinned app icon itself shows the notification unread count. And I don't have an unnecessary tray icon cluttering up my system tray.
screenshot_20190223_103432

Here's how Telegram does it:

@HammyHavoc
Copy link

Is there anybody currently working on this?

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

Successfully merging a pull request may close this issue.

10 participants