Skip to content

Commit

Permalink
Merge pull request #40274 from nkdengineer/fix/39861
Browse files Browse the repository at this point in the history
fix: Transaction thread opens in skeleton after replying to system message thread
  • Loading branch information
MonilBhavsar authored Apr 18, 2024
2 parents 25bf0f8 + 8bc6c96 commit 1bb22c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/home/report/ContextMenu/ContextMenuActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,19 +200,19 @@ const ContextMenuActions: ContextMenuAction[] = [
return !ReportUtils.shouldDisableThread(reportAction, reportID);
},
onPress: (closePopover, {reportAction, reportID}) => {
const originalReportID = ReportUtils.getOriginalReportID(reportID, reportAction);
if (closePopover) {
hideContextMenu(false, () => {
InteractionManager.runAfterInteractions(() => {
// Normally the focus callback of the main composer doesn't focus when willBlurTextInputOnTapOutside
// is false, so we need to pass true here to override this condition.
ReportActionComposeFocusManager.focus(true);
});
Report.navigateToAndOpenChildReport(reportAction?.childReportID ?? '0', reportAction, reportID);
Report.navigateToAndOpenChildReport(reportAction?.childReportID ?? '0', reportAction, originalReportID);
});
return;
}

Report.navigateToAndOpenChildReport(reportAction?.childReportID ?? '0', reportAction, reportID);
Report.navigateToAndOpenChildReport(reportAction?.childReportID ?? '0', reportAction, originalReportID);
},
getDescription: () => {},
},
Expand Down

0 comments on commit 1bb22c3

Please sign in to comment.