From 8bc86fe3cdfd13edb9e5c16f70589084fb89f9cd Mon Sep 17 00:00:00 2001 From: Pedro Guerreiro Date: Thu, 14 Nov 2024 20:21:41 +0000 Subject: [PATCH] chore: revert deletion of report property --- src/libs/DebugUtils.ts | 1 + src/types/onyx/Report.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/libs/DebugUtils.ts b/src/libs/DebugUtils.ts index 4d4c9b72ff4..5db6f9bd965 100644 --- a/src/libs/DebugUtils.ts +++ b/src/libs/DebugUtils.ts @@ -521,6 +521,7 @@ function validateReportDraftProperty(key: keyof Report, value: string) { role: CONST.REPORT.ROLE, pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION, pendingFields: 'object', + notificationPreference: CONST.REPORT.NOTIFICATION_PREFERENCE, }, 'number', ); diff --git a/src/types/onyx/Report.ts b/src/types/onyx/Report.ts index bf265ae93d4..74e3e169d4d 100644 --- a/src/types/onyx/Report.ts +++ b/src/types/onyx/Report.ts @@ -39,6 +39,9 @@ type PendingChatMember = { type Participant = OnyxCommon.OnyxValueWithOfflineFeedback<{ /** What is the role of the participant in the report */ role?: ValueOf; + + /** Whether the participant is visible in the report */ + notificationPreference: NotificationPreference; }>; /** Types of invoice receivers in a report */