Prevent enter to send edit weirdness when no change has been made (#7522)
parent
f81120f35f
commit
9ca429d15c
|
@ -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 New Issue