From 01d61786f1a3334ad75b8be3fac97c06acb6ca1d Mon Sep 17 00:00:00 2001 From: Germain Souquet Date: Mon, 6 Sep 2021 16:18:35 +0100 Subject: [PATCH] Update return type for getThread prop --- src/components/views/messages/MessageActionBar.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/views/messages/MessageActionBar.tsx b/src/components/views/messages/MessageActionBar.tsx index bfca3406d3..fe4cf80bc0 100644 --- a/src/components/views/messages/MessageActionBar.tsx +++ b/src/components/views/messages/MessageActionBar.tsx @@ -37,11 +37,12 @@ import { MediaEventHelper } from "../../../utils/MediaEventHelper"; import DownloadActionButton from "./DownloadActionButton"; import SettingsStore from '../../../settings/SettingsStore'; import { RoomPermalinkCreator } from '../../../utils/permalinks/Permalinks'; +import ReplyThread from '../elements/ReplyThread'; interface IOptionsButtonProps { mxEvent: MatrixEvent; getTile: () => any; // TODO: FIXME, haven't figured out what the return type is here - getReplyThread: () => any; // TODO: FIXME, haven't figured out what the return type is here + getReplyThread: () => ReplyThread; permalinkCreator: RoomPermalinkCreator; onFocusChange: (menuDisplayed: boolean) => void; } @@ -130,7 +131,7 @@ interface IMessageActionBarProps { reactions?: any; permalinkCreator?: RoomPermalinkCreator; getTile: () => any; // TODO: FIXME, haven't figured out what the return type is here - getReplyThread?: () => JSX.Element; + getReplyThread?: () => ReplyThread; onFocusChange?: (menuDisplayed: boolean) => void; }