Prevent enter to send edit weirdness when no change has been made (#7522)
This commit is contained in:
parent
f81120f35f
commit
9ca429d15c
1 changed files with 2 additions and 0 deletions
|
@ -292,6 +292,8 @@ class EditMessageComposer extends React.Component<IEditMessageComposerProps, ISt
|
|||
}
|
||||
|
||||
private sendEdit = async (): Promise<void> => {
|
||||
if (this.state.saveDisabled) return;
|
||||
|
||||
const startTime = CountlyAnalytics.getTimestamp();
|
||||
const editedEvent = this.props.editState.getEvent();
|
||||
|
||||
|
|
Loading…
Reference in a new issue