Merge pull request #130 from matrix-org/rav/fix_rr_react_warning

Fix react warnings when a RR animation is happening during room switch
This commit is contained in:
Richard van der Hoff 2016-02-02 19:07:57 +01:00
commit 101f0219c4

View file

@ -915,7 +915,7 @@ module.exports = React.createClass({
var hr;
hr = (<hr className="mx_RoomView_myReadMarker" style={{opacity: 1, width: '99%'}} ref={function(n) {
Velocity(n, {opacity: '0', width: '10%'}, {duration: 400, easing: 'easeInSine', delay: 1000, complete: function() {
self.setState({readMarkerGhostEventId: undefined});
if (!self.unmounted) self.setState({readMarkerGhostEventId: undefined});
}});
}} />);
ret.splice(ghostIndex, 0, (