aboutsummaryrefslogtreecommitdiff
path: root/src/modules/users.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-11-24 18:50:28 +0200
committerHenry Jameson <me@hjkos.com>2019-11-24 18:50:28 +0200
commit319bb4ac2895b8eb62da42e3f95addc9bb67b1a0 (patch)
treede24974025e9df8ca77b6417df3813e1722beeec /src/modules/users.js
parentddb6fb9217789e90490a4ec1ce7a2dd9ced67631 (diff)
initial streaming work
Diffstat (limited to 'src/modules/users.js')
-rw-r--r--src/modules/users.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/modules/users.js b/src/modules/users.js
index e1373220..861a2f4f 100644
--- a/src/modules/users.js
+++ b/src/modules/users.js
@@ -469,11 +469,14 @@ const users = {
store.dispatch('initializeSocket')
}
- // Start getting fresh posts.
- store.dispatch('startFetchingTimeline', { timeline: 'friends' })
-
- // Start fetching notifications
- store.dispatch('startFetchingNotifications')
+ store.dispatch('startMastoSocket').catch((error) => {
+ console.error(error)
+ // Start getting fresh posts.
+ store.dispatch('startFetchingTimeline', { timeline: 'friends' })
+
+ // Start fetching notifications
+ store.dispatch('startFetchingNotifications')
+ })
// Get user mutes
store.dispatch('fetchMutes')