small refactor, added push unsub notice for BE

This commit is contained in:
Henry Jameson 2018-12-25 03:46:19 +03:00
parent 957b2a6f7e
commit a4f0902926
2 changed files with 56 additions and 25 deletions

View file

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