small refactor, added push unsub notice for BE
This commit is contained in:
parent
957b2a6f7e
commit
a4f0902926
2 changed files with 56 additions and 25 deletions
|
@ -117,7 +117,9 @@ const users = {
|
|||
registerPushNotifications(isEnabled, vapidPublicKey, token)
|
||||
},
|
||||
unregisterPushNotifications (store) {
|
||||
unregisterPushNotifications()
|
||||
const token = store.state.currentUser.credentials
|
||||
|
||||
unregisterPushNotifications(token)
|
||||
},
|
||||
addNewStatuses (store, { statuses }) {
|
||||
const users = map(statuses, 'user')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue