add initial structure for notification settings
This commit is contained in:
parent
77e270ef58
commit
e0b8ad9f14
@ -65,6 +65,9 @@ export const defaultState = {
|
||||
chatMention: true,
|
||||
polls: true
|
||||
},
|
||||
notificationSettings: {
|
||||
nativeNotifications: ['follows', 'mentions', 'followRequest', 'reports', 'chatMention', 'polls']
|
||||
},
|
||||
webPushNotifications: false,
|
||||
muteWords: [],
|
||||
highlight: {},
|
||||
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user