From 8632d56e97a9cb7d032ce97c3bf12f9273220ec2 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 9 Jun 2020 08:05:35 -0600 Subject: [PATCH] dispose -> destroy --- src/components/views/rooms/NotificationBadge.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/NotificationBadge.tsx b/src/components/views/rooms/NotificationBadge.tsx index a77d2fc8d0..50af2ee1d0 100644 --- a/src/components/views/rooms/NotificationBadge.tsx +++ b/src/components/views/rooms/NotificationBadge.tsx @@ -136,7 +136,7 @@ export class RoomNotificationState extends EventEmitter { return getEffectiveMembership(this.room.getMyMembership()) === EffectiveMembership.Invite; } - public dispose(): void { + public destroy(): void { this.room.removeListener("Room.receipt", this.handleRoomEventUpdate); this.room.removeListener("Room.timeline", this.handleRoomEventUpdate); this.room.removeListener("Room.redaction", this.handleRoomEventUpdate); @@ -240,7 +240,7 @@ export class ListNotificationState extends EventEmitter { const state = this.states[oldRoom.roomId]; delete this.states[oldRoom.roomId]; state.off(NOTIFICATION_STATE_UPDATE, this.onRoomNotificationStateUpdate); - state.dispose(); + state.destroy(); } for (const newRoom of diff.added) { const state = new RoomNotificationState(newRoom);