Merge pull request #3855 from matrix-org/jryans/custom-status-leak
Fix event handler leak in MemberStatusMessageAvatar
This commit is contained in:
commit
576434e8c8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue