From 236ca2e494db1664ea3e213b937b5fd87dd6e363 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 13 Sep 2022 19:50:31 +0100 Subject: [PATCH] Add missed removeListener (#9273) --- src/components/structures/RoomView.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index f692676858..3ce235116b 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -865,6 +865,7 @@ export class RoomView extends React.Component { 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);