Merge pull request #132 from matrix-org/rav/fix_404_on_echo
Don't try to use local echoes as scroll tokenspull/21833/head
						commit
						63b50ed230
					
				| 
						 | 
				
			
			@ -1005,8 +1005,15 @@ module.exports = React.createClass({
 | 
			
		|||
 | 
			
		||||
            var eventId = mxEv.getId();
 | 
			
		||||
            var highlight = (eventId == this.props.highlightedEventId);
 | 
			
		||||
 | 
			
		||||
            // we can't use local echoes as scroll tokens, because their event IDs change.
 | 
			
		||||
            // Local echos have a send "status".
 | 
			
		||||
            var scrollToken = mxEv.status ? undefined : eventId;
 | 
			
		||||
 | 
			
		||||
            ret.push(
 | 
			
		||||
                <li key={eventId} ref={this._collectEventNode.bind(this, eventId)} data-scroll-token={eventId}>
 | 
			
		||||
                <li key={eventId} 
 | 
			
		||||
                        ref={this._collectEventNode.bind(this, eventId)} 
 | 
			
		||||
                        data-scroll-token={scrollToken}>
 | 
			
		||||
                    <EventTile mxEvent={mxEv} continuation={continuation}
 | 
			
		||||
                        last={last} isSelectedEvent={highlight}/>
 | 
			
		||||
                </li>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue