diff --git a/app/views/RoomView.js b/app/views/RoomView.js
index acf6e53e..f60f0b8d 100644
--- a/app/views/RoomView.js
+++ b/app/views/RoomView.js
@@ -38,7 +38,7 @@ const styles = StyleSheet.create({
textAlign: 'center',
color: '#a00'
},
- header: {
+ loadingMore: {
transform: [{ scaleY: -1 }],
textAlign: 'center',
padding: 5,
@@ -86,7 +86,7 @@ export default class RoomView extends React.Component {
.sorted('ts', true);
this.state = {
slow: false,
- dataSource: [],
+ dataSource: ds.cloneWithRows(this.data),
loaded: true,
joined: typeof props.rid === 'undefined'
};
@@ -124,14 +124,12 @@ export default class RoomView extends React.Component {
this.state.end !== true
) {
this.setState({
- // ...this.state,
loadingMore: true
});
const lastRowData = this.data[rowCount - 1];
RocketChat.loadMessagesForRoom(this.rid, lastRowData.ts, ({ end }) => {
this.setState({
- // ...this.state,
loadingMore: false,
end
});
@@ -186,11 +184,11 @@ export default class RoomView extends React.Component {
renderHeader = () => {
if (this.state.loadingMore) {
- return Loading more messages...;
+ return Loading more messages...;
}
if (this.state.end) {
- return Start of conversation;
+ return Start of conversation;
}
};
@@ -202,7 +200,7 @@ export default class RoomView extends React.Component {