diff options
| author | Egor Kislitsyn <egor@kislitsyn.com> | 2018-12-06 20:34:00 +0700 |
|---|---|---|
| committer | Egor Kislitsyn <egor@kislitsyn.com> | 2018-12-06 20:34:00 +0700 |
| commit | 09147cacea6b80d348d4c8364b2815d9b4cac102 (patch) | |
| tree | 55f7fda120ef527bceafb1d45844efdb46277da3 /src/modules/users.js | |
| parent | 3fa9b39150c318972511882239304bc08f6f57ad (diff) | |
add service worker and push notifications
Diffstat (limited to 'src/modules/users.js')
| -rw-r--r-- | src/modules/users.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/users.js b/src/modules/users.js index 8630ee0d..791f1680 100644 --- a/src/modules/users.js +++ b/src/modules/users.js @@ -2,6 +2,8 @@ import backendInteractorService from '../services/backend_interactor_service/bac import { compact, map, each, merge } from 'lodash' import { set } from 'vue' +import registerPushNotifications from '../services/push/push.js' + // TODO: Unify with mergeOrAdd in statuses.js export const mergeOrAdd = (arr, obj, item) => { if (!item) { return false } @@ -125,6 +127,8 @@ const users = { // Fetch our friends store.rootState.api.backendInteractor.fetchFriends({id: user.id}) .then((friends) => commit('addNewUsers', friends)) + + registerPushNotifications(store) }) } else { // Authentication failed |
