aboutsummaryrefslogtreecommitdiff
path: root/src/modules/users.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-12-12 18:53:36 +0200
committerHenry Jameson <me@hjkos.com>2019-12-12 18:53:36 +0200
commit585702b1cedf25547ff5faf0170263088e5484a6 (patch)
treefd7fad324bc68c2474caa99dd487bad0cb917c35 /src/modules/users.js
parent63a5f50e7c4acfc7676a1093990d0377dcb1a39f (diff)
fix desktop notifications not working with streaming
Diffstat (limited to 'src/modules/users.js')
-rw-r--r--src/modules/users.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/users.js b/src/modules/users.js
index cbec6063..5dc2f36f 100644
--- a/src/modules/users.js
+++ b/src/modules/users.js
@@ -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()