From 470e1e9f01f59e790f0548ceb26f60cfa3c74d5d Mon Sep 17 00:00:00 2001 From: Youssef Lourayad Date: Wed, 6 Nov 2024 20:41:57 +0100 Subject: [PATCH] Use conciergeChatReportID returned from OpenApp --- src/ONYXKEYS.ts | 4 ++++ src/libs/actions/Report.ts | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/ONYXKEYS.ts b/src/ONYXKEYS.ts index 7d3d0edef36e..2d2a346989c3 100755 --- a/src/ONYXKEYS.ts +++ b/src/ONYXKEYS.ts @@ -452,6 +452,9 @@ const ONYXKEYS = { /** Company cards custom names */ NVP_EXPENSIFY_COMPANY_CARDS_CUSTOM_NAMES: 'nvp_expensify_ccCustomNames', + /** The user's Concierge reportID */ + CONCIERGE_REPORT_ID: 'conciergeReportID', + /** Collection Keys */ COLLECTION: { DOWNLOAD: 'download_', @@ -1021,6 +1024,7 @@ type OnyxValuesMapping = { [ONYXKEYS.IS_USING_IMPORTED_STATE]: boolean; [ONYXKEYS.SHOULD_SHOW_SAVED_SEARCH_RENAME_TOOLTIP]: boolean; [ONYXKEYS.NVP_EXPENSIFY_COMPANY_CARDS_CUSTOM_NAMES]: Record; + [ONYXKEYS.CONCIERGE_REPORT_ID]: string; }; type OnyxValues = OnyxValuesMapping & OnyxCollectionValuesMapping & OnyxFormValuesMapping & OnyxFormDraftValuesMapping; diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index d4c42697d70d..ac8c35c3fc4e 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -179,6 +179,11 @@ Onyx.connect({ }, }); +Onyx.connect({ + key: ONYXKEYS.CONCIERGE_REPORT_ID, + callback: (value) => (conciergeChatReportID = value), +}); + let preferredSkinTone: number = CONST.EMOJI_DEFAULT_SKIN_TONE; Onyx.connect({ key: ONYXKEYS.PREFERRED_EMOJI_SKIN_TONE,