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

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

Merged
merged 2 commits into from
Jan 12, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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