Merge pull request #2275 from Fusseldieb/develop

Notification fixes for Windows - AppID name was messing up handler
This commit is contained in:
David Baker
2025-04-28 13:44:53 +01:00
committed by GitHub

View File

@@ -596,8 +596,9 @@ app.on("second-instance", (ev, commandLine, workingDirectory) => {
} }
}); });
// Set the App User Model ID to match what the squirrel // This is required to make notification handlers work
// installer uses for the shortcut icon. // on Windows 8.1/10/11 (and is a noop on other platforms);
// This makes notifications work on windows 8.1 (and is // It must also match the ID found in 'electron-builder'
// a noop on other platforms). // in order to get the title and icon to show up correctly.
app.setAppUserModelId("com.squirrel.element-desktop.Element"); // Ref: https://stackoverflow.com/a/77314604/3525780
app.setAppUserModelId("im.riot.app");