Merge pull request #3826 from matrix-org/dbkr/roomview_listener_leak
Fix listener leak on RoomView
This commit is contained in:
commit
4a78faae4c
1 changed files with 1 additions and 0 deletions
|
@ -485,6 +485,7 @@ module.exports = createReactClass({
|
|||
MatrixClientPeg.get().removeListener("Room.timeline", this.onRoomTimeline);
|
||||
MatrixClientPeg.get().removeListener("Room.name", this.onRoomName);
|
||||
MatrixClientPeg.get().removeListener("Room.accountData", this.onRoomAccountData);
|
||||
MatrixClientPeg.get().removeListener("RoomState.events", this.onRoomStateEvents);
|
||||
MatrixClientPeg.get().removeListener("Room.myMembership", this.onMyMembership);
|
||||
MatrixClientPeg.get().removeListener("RoomState.members", this.onRoomStateMember);
|
||||
MatrixClientPeg.get().removeListener("accountData", this.onAccountData);
|
||||
|
|
Loading…
Reference in a new issue