diff --git a/src/components/views/elements/MessageEditor.js b/src/components/views/elements/MessageEditor.js index 0a3d6443d9..593e5bc616 100644 --- a/src/components/views/elements/MessageEditor.js +++ b/src/components/views/elements/MessageEditor.js @@ -206,7 +206,10 @@ export default class MessageEditor extends React.Component { _cancelPreviousPendingEdit() { const originalEvent = this.props.editState.getEvent(); const previousEdit = originalEvent.replacingEvent(); - if (previousEdit && (previousEdit.status === EventStatus.QUEUED || previousEdit.status === EventStatus.NOT_SENT)) { + if (previousEdit && ( + previousEdit.status === EventStatus.QUEUED || + previousEdit.status === EventStatus.NOT_SENT + )) { this.context.matrixClient.cancelPendingEvent(previousEdit); } }