This repository was archived by the owner on Oct 11, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-304
lines changed Expand file tree Collapse file tree 2 files changed +2
-304
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11// @flow
22import * as React from 'react' ;
33import { convertFromRaw } from 'draft-js' ;
4- import stateToMarkdown from 'shared/ draft-utils/state-to -markdown.js ' ;
4+ import { stateToMarkdown } from 'draft-js-export -markdown' ;
55import type { MessageInfoType } from 'shared/graphql/fragments/message/messageInfo.js' ;
66import { Input } from '../chatInput/style' ;
77import { EditorInput , EditActions } from './style' ;
@@ -11,10 +11,6 @@ import { addToastWithTimeout } from 'src/actions/toasts';
1111import compose from 'recompose/compose' ;
1212import { connect } from 'react-redux' ;
1313import editMessageMutation from 'shared/graphql/mutations/message/editMessage' ;
14- import processMessageContent , {
15- messageTypeObj ,
16- attachLanguageToCodeBlocks ,
17- } from 'shared/draft-utils/process-message-content' ;
1814
1915type Props = {
2016 message : MessageInfoType ,
@@ -35,7 +31,7 @@ const EditingChatInput = (props: Props) => {
3531 props . message . messageType === 'text'
3632 ? props . message . content . body
3733 : stateToMarkdown (
38- convertFromRaw ( JSON . parse ( body ) ) ,
34+ convertFromRaw ( JSON . parse ( props . message . content . body ) ) ,
3935 {
4036 gfm : true ,
4137 }
You can’t perform that action at this time.
0 commit comments