Dissabling email for group posts for now

This commit is contained in:
Adolfo Reyna
2025-02-05 09:58:37 -05:00
parent 9ad30e102e
commit bf2cdd4696
+2 -1
View File
@@ -417,7 +417,8 @@ const Notifications = {
const notifBody = `${senderProfile.profile.firstName} post in the group ${groupProfile.profile.firstName} ${groupProfile.profile.lastName}`; const notifBody = `${senderProfile.profile.firstName} post in the group ${groupProfile.profile.firstName} ${groupProfile.profile.lastName}`;
sendPushNotification(userProfile.token, notifBody, {}); sendPushNotification(userProfile.token, notifBody, {});
DB.addNotification(userProfile._id, notifBody, post._id, null, senderProfile._id); DB.addNotification(userProfile._id, notifBody, post._id, null, senderProfile._id);
yourGroupGotANewPostTemplate(groupProfile, userEmail, userProfile, senderProfile, message); // Disabling email notifications for now, until settings are implemented
// yourGroupGotANewPostTemplate(groupProfile, userEmail, userProfile, senderProfile, message);
}); });
}, },
async youGotANewPost(post) { async youGotANewPost(post) {