Skip to content

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

Fix chat visibility toggle

Gabe Kangas825bf2759611
diff --git a/webroot/js/app.js b/webroot/js/app.js
index 07df41f7b4..d09b8a4a57 100644
--- a/webroot/js/app.js
+++ b/webroot/js/app.js
@@ -41,9 +41,11 @@ export default class App extends Component {
constructor(props, context) {
super(props, context);
+ const chatStorage = getLocalStorage(KEY_CHAT_DISPLAYED);
+
this.state = {
websocket: new Websocket(),
- displayChat: getLocalStorage(KEY_CHAT_DISPLAYED), // chat panel state
+ displayChat: chatStorage === null ? true : chatStorage,
chatInputEnabled: false, // chat input box state
username: getLocalStorage(KEY_USERNAME) || generateUsername(),
userAvatarImage: