Convert MessageEvent to TS and hoist MediaEventHelper

This commit is contained in:
Travis Ralston
2021-07-16 15:12:36 -06:00
parent 0a99f76e7f
commit 703cf73759
6 changed files with 213 additions and 176 deletions
@@ -43,11 +43,15 @@ export function canCancel(eventStatus: EventStatus): boolean {
return eventStatus === EventStatus.QUEUED || eventStatus === EventStatus.NOT_SENT;
}
interface IEventTileOps {
export interface IEventTileOps {
isWidgetHidden(): boolean;
unhideWidget(): void;
}
export interface IOperableEventTile {
getEventTileOps(): IEventTileOps;
}
interface IProps {
/* the MatrixEvent associated with the context menu */
mxEvent: MatrixEvent;