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

Windows: show the unread count on the task bar (Fixes #4788) #4831

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rafd123
Copy link

@rafd123 rafd123 commented Jan 14, 2021

First time contributor checklist:

Contributor checklist:

Description

Fixes #4788.

Displays the unread message count on the Windows taskbar by using the Windows overlay API exposed by Electron:

image

See electron/electron#3148 for more info.

When the unread message count exceeds 9, the badge will show 9+ similar to Microsoft Teams.

image

Manually tested on Windows 10 64-bit by progressively marking conversations as unread (from 0 to well past 9 unread).

- Remove window.updateTrayIcon()
- Move call to tray.updateIcon() into set-badge-count ipc handler

Justification: ensure the badge count and tray icon are kept in sync
with regard to the unread count.
Windows doesn't support the badge count like other OSes. Instead the
badge count needs to be set as an overlay icon.

See electron/electron#3148

As a result, for Windows, express the unread count as an overlay icon
similar to what other messaging Electron apps do (e.g. Slack, Teams,
etc).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Windows Taskbar Icon Badge Count not showing
3 participants