Skip to content

Commit

Permalink
fix jest test 3
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Apr 15, 2024
1 parent 574e203 commit 9b09b31
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pages/home/report/UserTypingEventListener.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,10 @@ function UserTypingEventListener({report, lastVisitedPath}: UserTypingEventListe
const didCreateReportSuccessfully = !report.pendingFields || (!report.pendingFields.addWorkspaceRoom && !report.pendingFields.createChat);

if (!didSubscribeToReportTypingEvents.current && didCreateReportSuccessfully) {
const interactionTask = InteractionManager.runAfterInteractions(() => {
InteractionManager.runAfterInteractions(() => {
Report.subscribeToReportTypingEvents(reportID);
didSubscribeToReportTypingEvents.current = true;
});
return () => {
interactionTask.cancel();
};
}
} else {
const topmostReportId = Navigation.getTopmostReportId();
Expand Down

0 comments on commit 9b09b31

Please sign in to comment.