From 7b3282185ab2a82bd2508a585f91e234d1d593b5 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 7 Aug 2019 17:47:24 +0200 Subject: [PATCH] update proptypes --- src/components/views/rooms/SendMessageComposer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/rooms/SendMessageComposer.js b/src/components/views/rooms/SendMessageComposer.js index fdc5fdd9e2..b364ebdcc7 100644 --- a/src/components/views/rooms/SendMessageComposer.js +++ b/src/components/views/rooms/SendMessageComposer.js @@ -21,7 +21,6 @@ import EditorModel from '../../../editor/model'; import {getCaretOffsetAndText} from '../../../editor/dom'; import {htmlSerializeIfNeeded, textSerialize} from '../../../editor/serialize'; import {PartCreator} from '../../../editor/parts'; -import EditorStateTransfer from '../../../utils/EditorStateTransfer'; import {MatrixClient} from 'matrix-js-sdk'; import BasicMessageComposer from "./BasicMessageComposer"; import ReplyPreview from "./ReplyPreview"; @@ -42,8 +41,9 @@ function createMessageContent(model, editedEvent) { export default class SendMessageComposer extends React.Component { static propTypes = { - // the message event being edited - editState: PropTypes.instanceOf(EditorStateTransfer).isRequired, + room: PropTypes.object.isRequired, + placeholder: PropTypes.string, + permalinkCreator: PropTypes.object.isRequired, }; static contextTypes = {