diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index 671d895a21..6d03c849c4 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -540,8 +540,6 @@ export default class MessagePanel extends React.Component { if (!grouper) { const wantTile = this._shouldShowEvent(mxEv); if (wantTile) { - const {nextEvent, nextTile} = this._getNextEventInfo(this.props.events, i); - // make sure we unpack the array returned by _getTilesForEvent, // otherwise react will auto-generate keys and we will end up // replacing all of the DOM elements every time we paginate.