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

pull/21833/head
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
1 changed files with 2 additions and 0 deletions

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