|
@@ -51,7 +51,10 @@ class Chat extends AbstractChat<Props> {
|
51
|
51
|
* @inheritdoc
|
52
|
52
|
*/
|
53
|
53
|
render() {
|
54
|
|
- const messages = this.props._messages.map(this._transformMessage);
|
|
54
|
+ // Gifted chat requires a special object format and a reversed list
|
|
55
|
+ // of messages.
|
|
56
|
+ const messages
|
|
57
|
+ = this.props._messages.map(this._transformMessage).reverse();
|
55
|
58
|
const modalStyle = [
|
56
|
59
|
styles.modalBackdrop
|
57
|
60
|
];
|
|
@@ -156,11 +159,6 @@ function _mapStateToProps(state) {
|
156
|
159
|
|
157
|
160
|
return {
|
158
|
161
|
...abstractReduxProps,
|
159
|
|
-
|
160
|
|
- // Gifted chat requires the messages to be reverse ordered.
|
161
|
|
- _messages: [
|
162
|
|
- ...abstractReduxProps._messages
|
163
|
|
- ].reverse(),
|
164
|
162
|
_solidBackground: state['features/base/conference'].audioOnly
|
165
|
163
|
};
|
166
|
164
|
}
|