From 2d21835588bc7e18f30a830a8fb497065c1eea8e Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Mon, 14 Jul 2025 14:32:01 +0100 Subject: [PATCH] Document why we do this. --- src/ipc.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ipc.ts b/src/ipc.ts index 2f396db310..ea4a8b5b42 100644 --- a/src/ipc.ts +++ b/src/ipc.ts @@ -21,6 +21,9 @@ ipcMain.on( // each other. See https://github.com/vector-im/element-web/issues/16942 app.badgeCount = count; } else { + // similarly, we only use setOverlayIcon on Windows as it's only supported on that platform, but has good support + // from all the Windows variants we support. + // https://www.electronjs.org/docs/latest/api/browser-window#winsetoverlayiconoverlay-description-windows if (imageBuffer && imageBufferDescription !== undefined) { global.mainWindow?.setOverlayIcon( nativeImage.createFromBuffer(Buffer.from(imageBuffer)),