aboutsummaryrefslogtreecommitdiff
path: root/src/services/timeline_fetcher
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-03-09 02:38:10 +0200
committerHenry Jameson <me@hjkos.com>2021-03-09 02:38:10 +0200
commita8967d85bd7ae1541f1d4e41e95fc8fa111f2360 (patch)
tree07a47e664d02c27fee40ce58fbfcfa947028e457 /src/services/timeline_fetcher
parent90afcd3420a911856bde794f2b4dc1380a1a0751 (diff)
streamlined WS flow, reduced spam amount related to WS reconnections
Diffstat (limited to 'src/services/timeline_fetcher')
-rw-r--r--src/services/timeline_fetcher/timeline_fetcher.service.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/services/timeline_fetcher/timeline_fetcher.service.js b/src/services/timeline_fetcher/timeline_fetcher.service.js
index eb4a3e0d..46bba41a 100644
--- a/src/services/timeline_fetcher/timeline_fetcher.service.js
+++ b/src/services/timeline_fetcher/timeline_fetcher.service.js
@@ -66,14 +66,12 @@ const fetchAndUpdate = ({
return { statuses, pagination }
})
.catch((error) => {
- if (!store.rootState.api.connectionBroken) {
- store.dispatch('pushGlobalNotice', {
- level: 'error',
- messageKey: 'timeline.error',
- messageArgs: [error.message],
- timeout: 5000
- })
- }
+ store.dispatch('pushGlobalNotice', {
+ level: 'error',
+ messageKey: 'timeline.error',
+ messageArgs: [error.message],
+ timeout: 5000
+ })
})
}