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

Fix event handler leak in MemberStatusMessageAvatar
pull/21833/head
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
1 changed files with 1 additions and 1 deletions

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;