Skip to content

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

Force history messages to always be at the front of the messages array

Gabe Kangas025c6ab01315
diff --git a/webroot/js/components/chat/chat.js b/webroot/js/components/chat/chat.js
index f26b02e311..daeb5121a3 100644
--- a/webroot/js/components/chat/chat.js
+++ b/webroot/js/components/chat/chat.js
@@ -151,7 +151,7 @@ export default class Chat extends Component {
// extra user names
const chatUserNames = extraUserNamesFromMessageHistory(data);
this.setState({
- messages: this.state.messages.concat(data),
+ messages: data.concat(this.state.messages),
chatUserNames,
});
this.scrollToBottom();