Prevent enter to send edit weirdness when no change has been made (#7522)

This commit is contained in:
Michael Telatynski 2022-01-12 14:22:25 +00:00 committed by GitHub
parent f81120f35f
commit 9ca429d15c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();