Reduce code duplication

This commit is contained in:
Travis Ralston 2021-03-23 18:17:41 -06:00
parent fa54ca615a
commit 2f2bb9456f

View file

@ -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.