streamlined WS flow, reduced spam amount related to WS reconnections
This commit is contained in:
parent
90afcd3420
commit
a8967d85bd
5 changed files with 56 additions and 49 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue