Skip to content

Commit

Permalink
Try to reduce debounce timing for draft change
Browse files Browse the repository at this point in the history
  • Loading branch information
maxphilippov committed Sep 23, 2024
1 parent 95eb474 commit 8b0d52c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class ComposerMessageInput extends React.Component<
this.saveDraft = debounce(() => {
const { text, chatId } = this.state
this.props.updateDraftText(text.trim() === '' ? '' : text, chatId)
}, 1000)
}, 100)

this.textareaRef = React.createRef()
this.focus = this.focus.bind(this)
Expand Down

0 comments on commit 8b0d52c

Please sign in to comment.