Skip to content

Fix app name in Windows notifications#2867

Open
dbkr wants to merge 2 commits intodevelopfrom
dbkr/aumid_before_squirrels
Open

Fix app name in Windows notifications#2867
dbkr wants to merge 2 commits intodevelopfrom
dbkr/aumid_before_squirrels

Conversation

@dbkr
Copy link
Member

@dbkr dbkr commented Feb 27, 2026

Set the App user model ID before running squirrel hooks, as per comment

Fixes element-hq/element-web#32300

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)

Set the App user model ID before running squirrel hooks, as per comment
@dbkr dbkr added the T-Defect label Feb 27, 2026
@dbkr dbkr requested a review from a team as a code owner February 27, 2026 14:53
@dbkr dbkr requested review from Half-Shot and t3chguy February 27, 2026 14:53
Copy link
Member

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

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

Overall makes sense to me, but wish this was slightly more documented.

}

function checkSquirrelHooks(): boolean {
export function checkSquirrelHooks(): boolean {
Copy link
Member

Choose a reason for hiding this comment

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

This could do with a docstring to tell me what is is doing, I couldn't tell at first glance.

(I know it's not actually your code though)

// to know what AppUserModelID to set on the shortcut.
app.setAppUserModelId(buildConfig.appId);

if (checkSquirrelHooks()) {
Copy link
Member

Choose a reason for hiding this comment

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

Similarly probably would be helpful if this said "exit early if any of the squirrel hooks are set" but eh.

@dbkr
Copy link
Member Author

dbkr commented Feb 27, 2026

Well this did not work :/

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Desktop notifications now show an app ID on windows

2 participants