diff --git a/notifications.js b/notifications.js index 20f584d..173f1f9 100644 --- a/notifications.js +++ b/notifications.js @@ -438,7 +438,7 @@ const Notifications = { } const notifBody = `${senderProfile.profile.firstName} post in your profile`; sendPushNotification(profile.token, notifBody, {}); - sendWebNotification(profile.webSubscription, notifBody, message); + // sendWebNotification(profile.webSubscription, notifBody, message); DB.addNotification(toProfileId, notifBody, post._id, null, senderProfile._id); return youGotANewPostTemplate(profile, user.username, senderProfile, message); }, @@ -486,7 +486,7 @@ const Notifications = { yourGroupRequestAcceptedTemplate(groupProfile, user.username, requesterProfile); const notifBody = `You were added to the group ${groupProfile.profile.firstName} ${groupProfile.profile.lastName}`; sendPushNotification(requesterProfile.token, notifBody, {}); - sendWebNotification(requesterProfile.webSubscription, notifBody); + // sendWebNotification(requesterProfile.webSubscription, notifBody); DB.addNotification(requesterProfile, notifBody, null, null, groupProfile._id); },