mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 01:35:49 +03:00
fix lint
This commit is contained in:
parent
3fd96008c3
commit
daa2250023
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue