From c890cce37a2e54130a457c7cd8b676c4681aa2de Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Fri, 27 Feb 2026 22:56:40 +1100 Subject: [PATCH] fix: update notification icon handling to use default avatar if unavailable --- src/app/pages/client/ClientNonUIFeatures.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/pages/client/ClientNonUIFeatures.tsx b/src/app/pages/client/ClientNonUIFeatures.tsx index 35964ad..1161fa2 100644 --- a/src/app/pages/client/ClientNonUIFeatures.tsx +++ b/src/app/pages/client/ClientNonUIFeatures.tsx @@ -243,9 +243,10 @@ function MessageNotifications() { // Use renderer window.Notification — works in both Electron and browser. // Main-process Notification click events are unreliable on Windows without // full COM/AUMID registration, so we keep everything in the renderer. + const iconUrl = roomAvatar ?? '/res/android/android-chrome-192x192.png'; + const noti = new window.Notification(notificationTitle, { - icon: roomAvatar, - badge: roomAvatar, + icon: iconUrl, body: notificationBody, silent: true, });