You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-13 23:41:50 +03:00
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.
This commit is contained in:
@ -1259,7 +1259,9 @@ module.exports = React.createClass({
|
|||||||
var messagePanel = (
|
var messagePanel = (
|
||||||
<TimelinePanel ref={(r) => {
|
<TimelinePanel ref={(r) => {
|
||||||
this.refs.messagePanel = r;
|
this.refs.messagePanel = r;
|
||||||
|
if(r) {
|
||||||
this.updateTint();
|
this.updateTint();
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
room={this.state.room}
|
room={this.state.room}
|
||||||
hidden={hideMessagePanel}
|
hidden={hideMessagePanel}
|
||||||
|
Reference in New Issue
Block a user