Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Prevent enter to send edit weirdness when no change has been made (#7522
Browse files Browse the repository at this point in the history
)
  • Loading branch information
t3chguy committed Jan 12, 2022
1 parent f81120f commit 9ca429d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/views/rooms/EditMessageComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 9ca429d

Please sign in to comment.