Skip to content

Conversation

@Half-Shot
Copy link
Member

@Half-Shot Half-Shot commented Jul 14, 2025

Fixes #762
Requires element-hq/element-web#30315

This uses https://www.electronjs.org/docs/latest/api/browser-window#winsetoverlayiconoverlay-description-windows to add a badge to the taskbar icon on Windows to show how many outstanding notifications there are, or if the client goes offline.

2025-07-14.16-22-20.mp4

Checklist

  • Ensure your code works with manual testing.
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • I have licensed the changes to Element by completing the Contributor License Agreement (CLA)

@Half-Shot Half-Shot marked this pull request as ready for review July 14, 2025 13:32
@Half-Shot Half-Shot requested a review from a team as a code owner July 14, 2025 13:32
@Half-Shot Half-Shot requested review from dbkr and t3chguy July 14, 2025 13:32
@Half-Shot Half-Shot self-assigned this Jul 15, 2025
@Half-Shot Half-Shot requested a review from a team as a code owner July 15, 2025 12:55
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we consolidate the setBadgeCount IPC & favicon event handling into one file badge.ts or something to make it clear that they are mutually exclusive?

@Half-Shot
Copy link
Member Author

Could we consolidate the setBadgeCount IPC & favicon event handling into one file badge.ts or something to make it clear that they are mutually exclusive?

Did my best with this. There is some overlap still with tray.ts, but I think this is quite clear now.

@Half-Shot Half-Shot requested a review from t3chguy July 17, 2025 13:01
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane otherwise

@Half-Shot Half-Shot enabled auto-merge July 18, 2025 07:23
@Half-Shot Half-Shot merged commit 229e52d into develop Jul 18, 2025
34 checks passed
@Half-Shot Half-Shot deleted the hs/add-support-for-windows-badges branch July 18, 2025 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Number of unread messages badge not shown in the taskbar on Windows 10

3 participants