Merge pull request #3855 from matrix-org/jryans/custom-status-leak

Fix event handler leak in MemberStatusMessageAvatar
This commit is contained in:
J. Ryan Stinnett 2020-01-16 22:05:50 +00:00 committed by GitHub
commit 576434e8c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ export default class MemberStatusMessageAvatar extends React.Component {
user.on("User._unstable_statusMessage", this._onStatusMessageCommitted);
}
componentWillUmount() {
componentWillUnmount() {
const { user } = this.props.member;
if (!user) {
return;