Skip to content

Commit 1ecd239

Browse files
authored
Immediate:Push notification fix, also site is blocked for me now...🥲
1 parent 1d24de0 commit 1ecd239

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

server-src/server.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2749,10 +2749,7 @@ async function sendPushMessage(username, payload) {
27492749
try {
27502750
await webpush.sendNotification(sub, JSON.stringify(payload));
27512751
} catch (err) {
2752-
// 404: Not Found, 410: Gone (Unsubscribed)
2753-
if (err.statusCode === 404 || err.statusCode === 410) {
2754-
await removeSubscriptionFromFile(username, sub.endpoint);
2755-
}
2752+
//Don't do anything, since this would manually expire whenever the user makes a new one in their session.
27562753
}
27572754
}
27582755
}

0 commit comments

Comments
 (0)