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

Commit

Permalink
Merge pull request #718 from matrix-org/luke/ignore-no-tile-events
Browse files Browse the repository at this point in the history
Do not push a dummy element with a scroll token for invisible events
  • Loading branch information
dbkr authored Feb 23, 2017
2 parents 8737112 + 581c8c1 commit fd3c1ab
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/structures/MessagePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,6 @@ module.exports = React.createClass({
// replacing all of the DOM elements every time we paginate.
ret.push(...this._getTilesForEvent(prevEvent, mxEv, last));
prevEvent = mxEv;
} else if (!mxEv.status) {
// if we aren't showing the event, put in a dummy scroll token anyway, so
// that we can scroll to the right place.
ret.push(<li key={eventId} data-scroll-token={eventId}/>);
}

var isVisibleReadMarker = false;
Expand Down

0 comments on commit fd3c1ab

Please sign in to comment.