diff options
| author | Henry Jameson <me@hjkos.com> | 2021-03-09 02:38:10 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-03-09 02:38:10 +0200 |
| commit | a8967d85bd7ae1541f1d4e41e95fc8fa111f2360 (patch) | |
| tree | 07a47e664d02c27fee40ce58fbfcfa947028e457 /src/modules/users.js | |
| parent | 90afcd3420a911856bde794f2b4dc1380a1a0751 (diff) | |
streamlined WS flow, reduced spam amount related to WS reconnections
Diffstat (limited to 'src/modules/users.js')
| -rw-r--r-- | src/modules/users.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/users.js b/src/modules/users.js index ac52be1f..8a764a16 100644 --- a/src/modules/users.js +++ b/src/modules/users.js @@ -549,9 +549,8 @@ const users = { if (store.getters.mergedConfig.useStreamingApi) { store.dispatch('fetchTimeline', 'friends', { since: null }) store.dispatch('fetchNotifications', { since: null }) - store.dispatch('enableMastoSockets').catch((error) => { + store.dispatch('enableMastoSockets', true).catch((error) => { console.error('Failed initializing MastoAPI Streaming socket', error) - startPolling() }).then(() => { store.dispatch('fetchChats', { latest: true }) setTimeout(() => store.dispatch('setNotificationsSilence', false), 10000) |
