From a2943ac3485a4ab90e63ed4216ba30ed37bf6666 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 24 Aug 2017 11:55:39 +0100 Subject: [PATCH] Check room ID matches --- src/components/structures/TimelinePanel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/structures/TimelinePanel.js b/src/components/structures/TimelinePanel.js index 2840fd4579..6f72fcc767 100644 --- a/src/components/structures/TimelinePanel.js +++ b/src/components/structures/TimelinePanel.js @@ -512,7 +512,9 @@ var TimelinePanel = React.createClass({ // TODO: We should restrict this to only events in our timeline, // but possibly the event tile itself should just update when this // happens to save us re-rendering the whole timeline. - this.forceUpdate(); + if (ev.getRoomId() === this.props.timelineSet.room.roomId) { + this.forceUpdate(); + } }, onSync: function(state, prevState, data) {