mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 15:01:13 +02:00
Reduce code duplication
This commit is contained in:
parent
fa54ca615a
commit
2f2bb9456f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user