From f0cf5c0affd06ba28171ad7ef7add0a372b20672 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 1 Feb 2016 12:35:41 +0000 Subject: [PATCH] Update onRoomTimeline comment --- src/components/structures/RoomView.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 020f8fa876..6cc90bfc7d 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -306,7 +306,11 @@ module.exports = React.createClass({ } } - // tell the messagepanel to go paginate itself + // tell the messagepanel to go paginate itself. This in turn will cause + // onMessageListFillRequest to be called, which will call + // _onTimelineUpdated, which will update the state with the new event - + // so there is no need update the state here. + // if (this.refs.messagePanel) { this.refs.messagePanel.checkFillState(); }