Skip to content

Commit

Permalink
Merge pull request #21479 from bernhardoj/fix/19776-thread-parent-sta…
Browse files Browse the repository at this point in the history
…ys-highlighted

Fix thread parent message stays highlighted
  • Loading branch information
puneetlath authored Jun 27, 2023
2 parents ae331c6 + 6568a55 commit 58e29ce
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pages/home/report/ContextMenu/ContextMenuActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,15 @@ export default [
shouldShow: (type, reportAction, isArchivedRoom, betas, anchor, isChronosReport, reportID) =>
type === CONTEXT_MENU_TYPES.REPORT_ACTION && reportAction.actionName === CONST.REPORT.ACTIONS.TYPE.ADDCOMMENT && !ReportUtils.isThreadFirstChat(reportAction, reportID),
onPress: (closePopover, {reportAction, reportID}) => {
Report.navigateToAndOpenChildReport(lodashGet(reportAction, 'childReportID', '0'), reportAction, reportID);
if (closePopover) {
hideContextMenu(true, ReportActionComposeFocusManager.focus);
hideContextMenu(false, () => {
ReportActionComposeFocusManager.focus();
Report.navigateToAndOpenChildReport(lodashGet(reportAction, 'childReportID', '0'), reportAction, reportID);
});
return;
}

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

0 comments on commit 58e29ce

Please sign in to comment.