Connect only after-store instead of when user gets token
This commit is contained in:
parent
4185452b52
commit
41c4d59341
3 changed files with 13 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue