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

Commit 2f2bb94

Browse files
committed
Reduce code duplication
1 parent fa54ca6 commit 2f2bb94

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/components/structures/MessagePanel.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,6 @@ export default class MessagePanel extends React.Component {
540540
if (!grouper) {
541541
const wantTile = this._shouldShowEvent(mxEv);
542542
if (wantTile) {
543-
const {nextEvent, nextTile} = this._getNextEventInfo(this.props.events, i);
544-
545543
// make sure we unpack the array returned by _getTilesForEvent,
546544
// otherwise react will auto-generate keys and we will end up
547545
// replacing all of the DOM elements every time we paginate.

0 commit comments

Comments
 (0)