diff options
| author | Shpuld Shpludson <shp@cock.li> | 2021-03-15 09:45:38 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2021-03-15 09:45:38 +0000 |
| commit | a00212a3bbc029439a27ba01895e01adf37a2db6 (patch) | |
| tree | 7848bf740d0e081501ccb194031329ce5980d337 /src/modules/users.js | |
| parent | 184364c7e06a982b48bbe6d913f02a73dd428aef (diff) | |
| parent | a8967d85bd7ae1541f1d4e41e95fc8fa111f2360 (diff) | |
Merge branch 'websocket-fixes' into 'develop'
Various websocket fixes
See merge request pleroma/pleroma-fe!1326
Diffstat (limited to 'src/modules/users.js')
| -rw-r--r-- | src/modules/users.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/users.js b/src/modules/users.js index 655db4c7..8a764a16 100644 --- a/src/modules/users.js +++ b/src/modules/users.js @@ -547,9 +547,10 @@ const users = { } if (store.getters.mergedConfig.useStreamingApi) { - store.dispatch('enableMastoSockets').catch((error) => { + store.dispatch('fetchTimeline', 'friends', { since: null }) + store.dispatch('fetchNotifications', { since: null }) + 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) |
