Use IDestroyable instead of IDisposable
For consistency within our project
This commit is contained in:
parent
bed4766ec4
commit
eefc40e0f8
3 changed files with 7 additions and 6 deletions
|
@ -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<IProps, IStat
|
|||
}
|
||||
}
|
||||
|
||||
export class RoomNotificationState extends EventEmitter {
|
||||
export class RoomNotificationState extends EventEmitter implements IDestroyable {
|
||||
private _symbol: string;
|
||||
private _count: number;
|
||||
private _color: NotificationColor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue