Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit a2943ac

Browse files
committed
Check room ID matches
1 parent 67824e9 commit a2943ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/structures/TimelinePanel.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,9 @@ var TimelinePanel = React.createClass({
512512
// TODO: We should restrict this to only events in our timeline,
513513
// but possibly the event tile itself should just update when this
514514
// happens to save us re-rendering the whole timeline.
515-
this.forceUpdate();
515+
if (ev.getRoomId() === this.props.timelineSet.room.roomId) {
516+
this.forceUpdate();
517+
}
516518
},
517519

518520
onSync: function(state, prevState, data) {

0 commit comments

Comments
 (0)