Unverified Commit 7e513ee7 authored by Diego Mello's avatar Diego Mello Committed by GitHub
Browse files

[FIX] Remove listeners on RoomView header unmount (#874)

parent 6edef99d
......@@ -98,6 +98,13 @@ export default class RoomHeaderView extends Component {
return false;
}
componentWillUnmount() {
this.usersTyping.removeAllListeners();
if (this.user && this.user.removeAllListeners) {
this.user.removeAllListeners();
}
}
updateState = () => {
this.setState({ usersTyping: this.usersTyping.slice() });
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment