Skip to content

Commit

Permalink
Merge pull request #4777 from aman-atg/aman-atg-ChattingUX
Browse files Browse the repository at this point in the history
call debounce only when it's required
  • Loading branch information
tgolen authored Aug 23, 2021
2 parents e246d7a + 2a4effa commit f005e72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ class ReportActionCompose extends React.Component {
});
this.comment = newComment;
this.debouncedSaveReportComment(newComment);
this.debouncedBroadcastUserIsTyping();
if (newComment) {
this.debouncedBroadcastUserIsTyping();
}
}

/**
Expand Down

0 comments on commit f005e72

Please sign in to comment.