Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Disable chat input when websocket disconnects. Closes #174

Gabe Kangas0d2b519092a4
diff --git a/webroot/js/components/chat/chat.js b/webroot/js/components/chat/chat.js
index 014ddffc44..05cb2f865e 100644
--- a/webroot/js/components/chat/chat.js
+++ b/webroot/js/components/chat/chat.js
@@ -123,9 +123,11 @@ export default class Chat extends Component {
this.setState(newState);
}
}
+
websocketDisconnected() {
- // this.websocket = null;
- this.disableChat();
+ this.setState({
+ inputEnabled: false,
+ });
}
submitChat(content) {