Add missed removeListener (#9273)

pull/28217/head
David Baker 2022-09-13 19:50:31 +01:00 committed by GitHub
parent 348a006c6b
commit 236ca2e494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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