add initial structure for notification settings
This commit is contained in:
parent
77e270ef58
commit
e0b8ad9f14
@ -65,6 +65,9 @@ export const defaultState = {
|
|||||||
chatMention: true,
|
chatMention: true,
|
||||||
polls: true
|
polls: true
|
||||||
},
|
},
|
||||||
|
notificationSettings: {
|
||||||
|
nativeNotifications: ['follows', 'mentions', 'followRequest', 'reports', 'chatMention', 'polls']
|
||||||
|
},
|
||||||
webPushNotifications: false,
|
webPushNotifications: false,
|
||||||
muteWords: [],
|
muteWords: [],
|
||||||
highlight: {},
|
highlight: {},
|
||||||
|
@ -87,7 +87,7 @@ export async function initServiceWorker () {
|
|||||||
await getOrCreateServiceWorker()
|
await getOrCreateServiceWorker()
|
||||||
navigator.serviceWorker.addEventListener('message', (event) => {
|
navigator.serviceWorker.addEventListener('message', (event) => {
|
||||||
console.log('SW 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