Skip to content

Commit

Permalink
Add missed removeListener (#9273)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr committed Sep 13, 2022
1 parent 348a006 commit 236ca2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/structures/RoomView.tsx
Expand Up @@ -865,6 +865,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
if (this.context) {
this.context.removeListener(ClientEvent.Room, this.onRoom);
this.context.removeListener(RoomEvent.Timeline, this.onRoomTimeline);
this.context.removeListener(RoomEvent.TimelineReset, this.onRoomTimelineReset);
this.context.removeListener(RoomEvent.Name, this.onRoomName);
this.context.removeListener(RoomStateEvent.Events, this.onRoomStateEvents);
this.context.removeListener(RoomEvent.MyMembership, this.onMyMembership);
Expand Down

0 comments on commit 236ca2e

Please sign in to comment.