This commit is contained in:
binwiederhier
2026-01-06 14:22:55 -05:00
parent f51e99dc80
commit 2856793eff
6 changed files with 74 additions and 10 deletions

View File

@@ -57,6 +57,12 @@ const handlePushMessage = async (data) => {
broadcastChannel.postMessage(message); // To potentially play sound
await addNotification({ subscriptionId, message });
// Don't show a notification for deleted messages
if (message.deleted) {
return;
}
await self.registration.showNotification(
...toNotificationParams({
subscriptionId,