From eefc40e0f89c00aa46763391abdb7943cd0ad90c Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 9 Jun 2020 08:08:39 -0600 Subject: [PATCH] Use IDestroyable instead of IDisposable For consistency within our project --- src/components/views/rooms/NotificationBadge.tsx | 3 ++- src/stores/room-list/filters/CommunityFilterCondition.ts | 6 +++--- src/utils/{IDisposable.ts => IDestroyable.ts} | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) rename src/utils/{IDisposable.ts => IDestroyable.ts} (91%) diff --git a/src/components/views/rooms/NotificationBadge.tsx b/src/components/views/rooms/NotificationBadge.tsx index 50af2ee1d0..65a56691bf 100644 --- a/src/components/views/rooms/NotificationBadge.tsx +++ b/src/components/views/rooms/NotificationBadge.tsx @@ -31,6 +31,7 @@ import { MatrixEvent } from "matrix-js-sdk/src/models/event"; import ActiveRoomObserver from "../../../ActiveRoomObserver"; import { EventEmitter } from "events"; import { arrayDiff } from "../../../utils/arrays"; +import { IDestroyable } from "../../../utils/IDestroyable"; export const NOTIFICATION_STATE_UPDATE = "update"; @@ -106,7 +107,7 @@ export default class NotificationBadge extends React.PureComponent