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

Add removeListener for account data listener
This commit is contained in:
Richard van der Hoff 2016-07-21 14:02:22 +01:00 committed by GitHub
commit 8d2ac5dd5b

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);