From f3cd0aa0822ab88e4fc2feccf5917158d96b7b10 Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Fri, 19 Jan 2024 19:08:46 +0100 Subject: [PATCH] FdoNotification: Highlight difference between icon/image and app-icon This just renames the `icon` variable to `appIcon` to make clear that this icon is considered to be the app icon. Part-of: --- js/ui/notificationDaemon.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 450989d71..c0cb8acff 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -136,7 +136,7 @@ class FdoNotificationDaemon { } NotifyAsync(params, invocation) { - let [appName, replacesId, icon, summary, body, actions, hints, timeout] = params; + let [appName, replacesId, appIcon, summary, body, actions, hints, timeout] = params; let id; for (let hint in hints) { @@ -162,7 +162,7 @@ class FdoNotificationDaemon { const ndata = { appName, - icon, + appIcon, summary, body, actions, @@ -188,7 +188,7 @@ class FdoNotificationDaemon { } _notifyForSource(source, ndata) { - const {icon, summary, body, actions, hints} = ndata; + const {appIcon, summary, body, actions, hints} = ndata; let {notification} = ndata; if (notification == null) { @@ -216,7 +216,7 @@ class FdoNotificationDaemon { let gicon = this._imageForNotificationData(hints); if (!gicon) - gicon = this._iconForNotificationData(icon); + gicon = this._iconForNotificationData(appIcon); if (!gicon) gicon = this._fallbackIconForNotificationData(hints);