move unmounted init to willMount

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-02-19 14:28:31 +00:00
parent 8fa56f8c9a
commit 6510989ac6
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -52,11 +52,10 @@ export default class Reply extends React.Component {
}; };
this.onQuoteClick = this.onQuoteClick.bind(this); this.onQuoteClick = this.onQuoteClick.bind(this);
this.unmounted = false;
} }
componentWillMount() { componentWillMount() {
this.unmounted = false;
this.room = this.getRoom(this.props.parentEv.getRoomId()); this.room = this.getRoom(this.props.parentEv.getRoomId());
this.initialize(); this.initialize();
} }