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:
commit
101f0219c4
1 changed files with 1 additions and 1 deletions
|
@ -915,7 +915,7 @@ module.exports = React.createClass({
|
||||||
var hr;
|
var hr;
|
||||||
hr = (<hr className="mx_RoomView_myReadMarker" style={{opacity: 1, width: '99%'}} ref={function(n) {
|
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() {
|
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, (
|
ret.splice(ghostIndex, 0, (
|
||||||
|
|
Loading…
Reference in a new issue