Skip to content

Commit 72c28a2

Browse files
committed
ComposeBox: Don't save drafts of edited messages.
1 parent 15b607c commit 72c28a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/compose/ComposeBox.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,11 @@ class ComposeBox extends PureComponent<Props, State> {
241241

242242
handleMessageChange = (message: string) => {
243243
this.setState({ message, isMenuExpanded: false });
244-
const { dispatch, narrow } = this.props;
244+
const { dispatch, editing, narrow } = this.props;
245245
dispatch(sendTypingStart(narrow));
246-
dispatch(draftUpdate(narrow, message));
246+
if (!editing) {
247+
dispatch(draftUpdate(narrow, message));
248+
}
247249
};
248250

249251
// See JSDoc on 'onAutocomplete' in 'AutocompleteView.js'.

0 commit comments

Comments
 (0)