commit: e0b8ad9f141f418ab3d8ebc7a9e68bcb755c820a
parent 77e270ef58750bb06955b7f45bd63382704928a5
Author: Henry Jameson <me@hjkos.com>
Date: Thu, 9 Nov 2023 01:58:33 +0200
add initial structure for notification settings
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/modules/config.js b/src/modules/config.js
@@ -65,6 +65,9 @@ export const defaultState = {
chatMention: true,
polls: true
},
+ notificationSettings: {
+ nativeNotifications: ['follows', 'mentions', 'followRequest', 'reports', 'chatMention', 'polls']
+ },
webPushNotifications: false,
muteWords: [],
highlight: {},
diff --git a/src/services/sw/sw.js b/src/services/sw/sw.js
@@ -87,7 +87,7 @@ export async function initServiceWorker () {
await getOrCreateServiceWorker()
navigator.serviceWorker.addEventListener('message', (event) => {
console.log('SW MESSAGE', event)
- // TODO actually act upon click (open drawer on mobile for now)
+ // TODO actually act upon click (open drawer on mobile, open chat/thread etc)
})
}