summaryrefslogtreecommitdiffstats
path: root/web/react/components/error_bar.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-01 08:27:57 -0500
committerChristopher Speller <crspeller@gmail.com>2016-03-01 08:27:57 -0500
commita66e9513ad48089f16469509ab4fad633f8eaac5 (patch)
tree8ec3b1be136733b7be7f6aeee2e91b81cebf245c /web/react/components/error_bar.jsx
parent39c83f70fc227e9bb88c24b15ff2b8748e9d670b (diff)
parent6c18e13f8ae4d8785b598adc0cb3e93c27cec849 (diff)
downloadchat-a66e9513ad48089f16469509ab4fad633f8eaac5.tar.gz
chat-a66e9513ad48089f16469509ab4fad633f8eaac5.tar.bz2
chat-a66e9513ad48089f16469509ab4fad633f8eaac5.zip
Merge pull request #2276 from mattermost/PLT-2030
PLT-2030 fixing error handling
Diffstat (limited to 'web/react/components/error_bar.jsx')
-rw-r--r--web/react/components/error_bar.jsx16
1 files changed, 0 insertions, 16 deletions
diff --git a/web/react/components/error_bar.jsx b/web/react/components/error_bar.jsx
index f04185b46..9a114c544 100644
--- a/web/react/components/error_bar.jsx
+++ b/web/react/components/error_bar.jsx
@@ -38,25 +38,9 @@ export default class ErrorBar extends React.Component {
return false;
}
- if (s.connErrorCount && s.connErrorCount >= 1 && s.connErrorCount < 7) {
- return false;
- }
-
return true;
}
- isConnectionError(s) {
- if (!s.connErrorCount || s.connErrorCount === 0) {
- return false;
- }
-
- if (s.connErrorCount > 7) {
- return true;
- }
-
- return false;
- }
-
componentWillMount() {
if (global.window.mm_config.SendEmailNotifications === 'false') {
ErrorStore.storeLastError({message: this.props.intl.formatMessage(messages.preview)});