We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d24de0 commit 1ecd239Copy full SHA for 1ecd239
1 file changed
server-src/server.js
@@ -2749,10 +2749,7 @@ async function sendPushMessage(username, payload) {
2749
try {
2750
await webpush.sendNotification(sub, JSON.stringify(payload));
2751
} catch (err) {
2752
- // 404: Not Found, 410: Gone (Unsubscribed)
2753
- if (err.statusCode === 404 || err.statusCode === 410) {
2754
- await removeSubscriptionFromFile(username, sub.endpoint);
2755
- }
+ //Don't do anything, since this would manually expire whenever the user makes a new one in their session.
2756
}
2757
2758
0 commit comments