diff --git a/src/components/views/context_menus/MessageContextMenu.tsx b/src/components/views/context_menus/MessageContextMenu.tsx index dec2c097fab..e0fca0a4c0b 100644 --- a/src/components/views/context_menus/MessageContextMenu.tsx +++ b/src/components/views/context_menus/MessageContextMenu.tsx @@ -49,7 +49,6 @@ import ViewSource from "../../structures/ViewSource"; import { createRedactEventDialog } from "../dialogs/ConfirmRedactDialog"; import ShareDialog from "../dialogs/ShareDialog"; import RoomContext, { TimelineRenderingType } from "../../../contexts/RoomContext"; -import { ComposerInsertPayload } from "../../../dispatcher/payloads/ComposerInsertPayload"; import EndPollDialog from "../dialogs/EndPollDialog"; import { isPollEnded } from "../messages/MPollBody"; import { ViewRoomPayload } from "../../../dispatcher/payloads/ViewRoomPayload"; @@ -286,15 +285,6 @@ export default class MessageContextMenu extends React.Component this.closeMenu(); }; - private onQuoteClick = (): void => { - dis.dispatch({ - action: Action.ComposerInsert, - event: this.props.mxEvent, - timelineRenderingType: this.context.timelineRenderingType, - }); - this.closeMenu(); - }; - private onShareClick = (e: ButtonEvent): void => { e.preventDefault(); Modal.createDialog(ShareDialog, { @@ -524,18 +514,6 @@ export default class MessageContextMenu extends React.Component ); } - let quoteButton: JSX.Element | undefined; - if (eventTileOps && canSendMessages) { - // this event is rendered using TextualBody - quoteButton = ( - - ); - } - // Bridges can provide a 'external_url' to link back to the source. let externalURLButton: JSX.Element | undefined; if ( @@ -709,7 +687,6 @@ export default class MessageContextMenu extends React.Component {viewInRoomButton} {openInMapSiteButton} {endPollButton} - {quoteButton} {forwardButton} {pinButton} {permalinkButton} diff --git a/src/dispatcher/payloads/ComposerInsertPayload.ts b/src/dispatcher/payloads/ComposerInsertPayload.ts index 1adcdae05ca..760cd561d45 100644 --- a/src/dispatcher/payloads/ComposerInsertPayload.ts +++ b/src/dispatcher/payloads/ComposerInsertPayload.ts @@ -14,8 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { MatrixEvent } from "matrix-js-sdk/src/matrix"; - import { ActionPayload } from "../payloads"; import { Action } from "../actions"; import { TimelineRenderingType } from "../../contexts/RoomContext"; @@ -35,15 +33,8 @@ interface IComposerInsertMentionPayload extends IBaseComposerInsertPayload { userId: string; } -interface IComposerInsertQuotePayload extends IBaseComposerInsertPayload { - event: MatrixEvent; -} - interface IComposerInsertPlaintextPayload extends IBaseComposerInsertPayload { text: string; } -export type ComposerInsertPayload = - | IComposerInsertMentionPayload - | IComposerInsertQuotePayload - | IComposerInsertPlaintextPayload; +export type ComposerInsertPayload = IComposerInsertMentionPayload | IComposerInsertPlaintextPayload;