Connect only after-store instead of when user gets token

This commit is contained in:
shpuld 2019-01-29 17:16:25 +02:00
parent 4185452b52
commit 41c4d59341
3 changed files with 13 additions and 4 deletions

View file

@ -222,10 +222,10 @@ const users = {
commit('setBackendInteractor', backendInteractorService(accessToken))
if (user.token) {
store.dispatch('initializeSocket', user.token)
store.dispatch('setWsToken', user.token)
}
// Start getting fresh tweets.
// Start getting fresh posts.
store.dispatch('startFetching', 'friends')
// Get user mutes and follower info