fix desktop notifications not working with streaming

This commit is contained in:
Henry Jameson 2019-12-12 18:53:36 +02:00
parent 63a5f50e7c
commit 585702b1ce
1 changed files with 2 additions and 0 deletions

View File

@ -481,6 +481,8 @@ const users = {
store.dispatch('enableMastoSockets').catch((error) => {
console.error('Failed initializing MastoAPI Streaming socket', error)
startPolling()
}).then(() => {
setTimeout(() => store.dispatch('setNotificationsSilence', false), 10000)
})
} else {
startPolling()