This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ import ShareDialog from '../dialogs/ShareDialog';
3939import { RoomPermalinkCreator } from "../../../utils/permalinks/Permalinks" ;
4040import { IPosition , ChevronFace } from '../../structures/ContextMenu' ;
4141import RoomContext , { TimelineRenderingType } from '../../../contexts/RoomContext' ;
42+ import { ComposerInsertPayload } from "../../../dispatcher/payloads/ComposerInsertPayload" ;
4243
4344export function canCancel ( eventStatus : EventStatus ) : boolean {
4445 return eventStatus === EventStatus . QUEUED || eventStatus === EventStatus . NOT_SENT ;
@@ -76,6 +77,7 @@ interface IState {
7677@replaceableComponent ( "views.context_menus.MessageContextMenu" )
7778export default class MessageContextMenu extends React . Component < IProps , IState > {
7879 static contextType = RoomContext ;
80+ public context ! : React . ContextType < typeof RoomContext > ;
7981
8082 state = {
8183 canRedact : false ,
@@ -190,9 +192,10 @@ export default class MessageContextMenu extends React.Component<IProps, IState>
190192 } ;
191193
192194 private onQuoteClick = ( ) : void => {
193- dis . dispatch ( {
195+ dis . dispatch < ComposerInsertPayload > ( {
194196 action : Action . ComposerInsert ,
195197 event : this . props . mxEvent ,
198+ timelineRenderingType : this . context . timelineRenderingType ,
196199 } ) ;
197200 this . closeMenu ( ) ;
198201 } ;
You can’t perform that action at this time.
0 commit comments