Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Chat render improbement

Bettenbuk Zoltan230b2b02fa87
diff --git a/react/features/chat/components/native/Chat.js b/react/features/chat/components/native/Chat.js
index 4484f5a14e..9b7c66396e 100644
--- a/react/features/chat/components/native/Chat.js
+++ b/react/features/chat/components/native/Chat.js
@@ -51,7 +51,10 @@ class Chat extends AbstractChat<Props> {
* @inheritdoc
*/
render() {
- const messages = this.props._messages.map(this._transformMessage);
+ // Gifted chat requires a special object format and a reversed list
+ // of messages.
+ const messages
+ = this.props._messages.map(this._transformMessage).reverse();
const modalStyle = [
styles.modalBackdrop
];
@@ -156,11 +159,6 @@ function _mapStateToProps(state) {
return {
...abstractReduxProps,
-
- // Gifted chat requires the messages to be reverse ordered.
- _messages: [
- ...abstractReduxProps._messages
- ].reverse(),
_solidBackground: state['features/base/conference'].audioOnly
};
}