Skip to content

Commit

Permalink
Getter for concierge chat ID
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejSWM committed Mar 19, 2024
1 parent 109a37c commit 3110d73
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1732,6 +1732,15 @@ function updateWriteCapabilityAndNavigate(report: Report, newValue: WriteCapabil
Navigation.goBack(ROUTES.REPORT_SETTINGS.getRoute(report.reportID));
}

/**
* A simple getter that returns Concierge chat ID.
* Returns undefined until Concierge chat is fetched.
*
*/
function getConciergeChatReportID() {
return conciergeChatReportID;
}

/**
* Navigates to the 1:1 report with Concierge
*/
Expand Down Expand Up @@ -2971,6 +2980,7 @@ export {
deleteReportComment,
navigateToConciergeChat,
setReportWithDraft,
getConciergeChatReportID,
addPolicyReport,
deleteReport,
navigateToConciergeChatAndDeleteReport,
Expand Down

0 comments on commit 3110d73

Please sign in to comment.