You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Merge pull request #718 from matrix-org/luke/ignore-no-tile-events
Do not push a dummy element with a scroll token for invisible events
This commit is contained in:
@ -364,10 +364,6 @@ module.exports = React.createClass({
|
|||||||
// replacing all of the DOM elements every time we paginate.
|
// replacing all of the DOM elements every time we paginate.
|
||||||
ret.push(...this._getTilesForEvent(prevEvent, mxEv, last));
|
ret.push(...this._getTilesForEvent(prevEvent, mxEv, last));
|
||||||
prevEvent = mxEv;
|
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;
|
var isVisibleReadMarker = false;
|
||||||
|
Reference in New Issue
Block a user