add initial structure for notification settings

This commit is contained in:
Henry Jameson 2023-11-09 01:58:33 +02:00
parent 77e270ef58
commit e0b8ad9f14
2 changed files with 4 additions and 1 deletions

View File

@ -65,6 +65,9 @@ export const defaultState = {
chatMention: true,
polls: true
},
notificationSettings: {
nativeNotifications: ['follows', 'mentions', 'followRequest', 'reports', 'chatMention', 'polls']
},
webPushNotifications: false,
muteWords: [],
highlight: {},

View File

@ -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)
})
}