Skip to content

Commit

Permalink
Merge pull request #38716 from Expensify/ionatan_lessuseristyping
Browse files Browse the repository at this point in the history
[No QA] Ensure we send the typing indicator as soon as you type and once ever…
  • Loading branch information
amyevans authored Mar 25, 2024
2 parents fe0699c + 44be11c commit 959135c
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,16 @@ const isIOSNative = getPlatform() === CONST.PLATFORM.IOS;
/**
* Broadcast that the user is typing. Debounced to limit how often we publish client events.
*/
const debouncedBroadcastUserIsTyping = lodashDebounce((reportID: string) => {
Report.broadcastUserIsTyping(reportID);
}, 100);
const debouncedBroadcastUserIsTyping = lodashDebounce(
(reportID: string) => {
Report.broadcastUserIsTyping(reportID);
},
1000,
{
maxWait: 1000,
leading: true,
},
);

const willBlurTextInputOnTapOutside = willBlurTextInputOnTapOutsideFunc();

Expand Down

0 comments on commit 959135c

Please sign in to comment.