fix(notifications): default webpush notification agent to enabled for users for settings response

closes #1663
pull/1668/head
sct 3 years ago
parent 14756f4b20
commit 7520e24e92
No known key found for this signature in database
GPG Key ID: 77D146606D30DCCD

@ -84,7 +84,7 @@ router.use('/user', isAuthenticated(), user);
router.get('/settings/public', async (req, res) => {
const settings = getSettings();
if (!req.user?.settings?.notificationTypes.webpush) {
if (!(req.user?.settings?.notificationTypes.webpush ?? true)) {
return res
.status(200)
.json({ ...settings.fullPublicSettings, enablePushRegistration: false });

Loading…
Cancel
Save