diff --git a/src/components/views/rooms/Stickerpicker.js b/src/components/views/rooms/Stickerpicker.js index 0d7f808d23..c65720a32b 100644 --- a/src/components/views/rooms/Stickerpicker.js +++ b/src/components/views/rooms/Stickerpicker.js @@ -103,6 +103,9 @@ export default class Stickerpicker extends React.Component { } componentWillUnmount() { + const client = MatrixClientPeg.get(); + if (client) client.removeListener('accountData', this._updateWidget); + window.removeEventListener('resize', this._onResize); if (this.dispatcherRef) { dis.unregister(this.dispatcherRef);