add initial structure for notification settings

このコミットが含まれているのは:
Henry Jameson 2023-11-09 01:58:33 +02:00
コミット e0b8ad9f14
2個のファイルの変更4行の追加1行の削除

ファイルの表示

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