aboutsummaryrefslogtreecommitdiff
path: root/src/modules/users.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2021-03-15 09:45:38 +0000
committerShpuld Shpludson <shp@cock.li>2021-03-15 09:45:38 +0000
commita00212a3bbc029439a27ba01895e01adf37a2db6 (patch)
tree7848bf740d0e081501ccb194031329ce5980d337 /src/modules/users.js
parent184364c7e06a982b48bbe6d913f02a73dd428aef (diff)
parenta8967d85bd7ae1541f1d4e41e95fc8fa111f2360 (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.js5
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)