Merge pull request #359 from matrix-org/dbkr/remove_account_data_listener

Add removeListener for account data listener
pull/21833/head
Richard van der Hoff 2016-07-21 14:02:22 +01:00 committed by GitHub
commit 8d2ac5dd5b
1 changed files with 1 additions and 0 deletions

View File

@ -268,6 +268,7 @@ module.exports = React.createClass({
MatrixClientPeg.get().removeListener("Room.timeline", this.onRoomTimeline);
MatrixClientPeg.get().removeListener("Room.accountData", this.onRoomAccountData);
MatrixClientPeg.get().removeListener("RoomState.members", this.onRoomStateMember);
MatrixClientPeg.get().removeListener("accountData", this.onAccountData);
}
window.removeEventListener('resize', this.onResize);