Don't re-tint on unmount
Need to remember the 'ref' function is called on unmount too - we shouldn't retint back to the room colours at this point.pull/21833/head
							parent
							
								
									b766055f2f
								
							
						
					
					
						commit
						ab9690d3b0
					
				| 
						 | 
				
			
			@ -1258,8 +1258,10 @@ module.exports = React.createClass({
 | 
			
		|||
 | 
			
		||||
        var messagePanel = (
 | 
			
		||||
            <TimelinePanel ref={(r) => {
 | 
			
		||||
                        this.refs.messagePanel = r;
 | 
			
		||||
                    this.refs.messagePanel = r;
 | 
			
		||||
                    if(r) {
 | 
			
		||||
                        this.updateTint();
 | 
			
		||||
                    }
 | 
			
		||||
                }}
 | 
			
		||||
                room={this.state.room}
 | 
			
		||||
                hidden={hideMessagePanel}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue