logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: a564fc1a1f91faf2a418fd6affadbd42c98825d8
parent c216340001f1b019b58a075c173b78ff9f4dafa7
Author: Henry Jameson <me@hjkos.com>
Date:   Sun, 19 Nov 2023 13:54:26 +0200

consistentcy and bugfix

Diffstat:

Msrc/modules/notifications.js2+-
Msrc/services/desktop_notification_utils/desktop_notification_utils.js4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules/notifications.js b/src/modules/notifications.js @@ -150,7 +150,7 @@ export const notifications = { id, credentials: rootState.users.currentUser.credentials }).then(() => { - closeDesktopNotification(rootState, id) + closeDesktopNotification(rootState, { id }) }) }, dismissNotificationLocal ({ rootState, commit }, { id }) { diff --git a/src/services/desktop_notification_utils/desktop_notification_utils.js b/src/services/desktop_notification_utils/desktop_notification_utils.js @@ -21,7 +21,7 @@ export const showDesktopNotification = (rootState, desktopNotificationOpts) => { } } -export const closeDesktopNotification = (rootState, id) => { +export const closeDesktopNotification = (rootState, { id }) => { if (!('Notification' in window && window.Notification.permission === 'granted')) return if (isSWSupported()) { @@ -33,6 +33,6 @@ export const closeAllDesktopNotifications = (rootState) => { if (!('Notification' in window && window.Notification.permission === 'granted')) return if (isSWSupported()) { - swCloseDesktopNotification() + swCloseDesktopNotification({}) } }