diff --git a/src/electron-main.ts b/src/electron-main.ts index 33f6a3f..c82e346 100644 --- a/src/electron-main.ts +++ b/src/electron-main.ts @@ -325,7 +325,12 @@ process.on('uncaughtException', function(error) { let focusHandlerAttached = false; ipcMain.on('setBadgeCount', function(ev, count) { - app.badgeCount = count; + if (process.platform !== 'win32') { + // only set badgeCount on Mac/Linux, the docs say that only those platforms support it but turns out Electron + // has some Windows support too, and in some Windows environments this leads to two badges rendering atop + // each other. See https://github.com/vector-im/element-web/issues/16942 + app.badgeCount = count; + } if (count === 0 && mainWindow) { mainWindow.flashFrame(false); }