diff --git a/src/libs/DebugUtils.ts b/src/libs/DebugUtils.ts index 223c04df4eac..2f0da08b194d 100644 --- a/src/libs/DebugUtils.ts +++ b/src/libs/DebugUtils.ts @@ -65,9 +65,7 @@ const REPORT_BOOLEAN_PROPERTIES: Array = [ 'isWaitingOnBankAccount', 'isCancelledIOU', 'isHidden', - 'isChatRoom', 'isLoadingPrivateNotes', - 'selected', ] satisfies Array; const REPORT_DATE_PROPERTIES: Array = ['lastVisibleActionCreated', 'lastReadTime', 'lastMentionedTime', 'lastVisibleActionLastModified'] satisfies Array; @@ -496,9 +494,6 @@ function validateReportDraftProperty(key: keyof Report, value: string) { if (key === 'pendingFields') { return validateObject(value, {}); } - if (key === 'participantAccountIDs') { - return validateArray(value, 'number'); - } validateString(value); } diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 17ea13c694e8..b220c2db20b6 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -520,6 +520,8 @@ type OptionData = { isConciergeChat?: boolean; isBold?: boolean; lastIOUCreationDate?: string; + isChatRoom?: boolean; + participantsList?: PersonalDetails[]; icons?: Icon[]; iouReportAmount?: number; } & Report; diff --git a/src/types/form/DebugReportForm.ts b/src/types/form/DebugReportForm.ts index b16f3b93f7f0..c21ca6f2dc73 100644 --- a/src/types/form/DebugReportForm.ts +++ b/src/types/form/DebugReportForm.ts @@ -28,7 +28,6 @@ const INPUT_IDS = { NOTIFICATION_PREFERENCE: 'notificationPreference', OLD_POLICY_NAME: 'oldPolicyName', OWNER_ACCOUNT_ID: 'ownerAccountID', - PARTICIPANT_ACCOUNT_IDS: 'participantAccountIDs', PARTICIPANTS: 'participants', PERMISSIONS: 'permissions', POLICY_AVATAR: 'policyAvatar', @@ -78,7 +77,6 @@ type DebugReportForm = Form< [INPUT_IDS.NOTIFICATION_PREFERENCE]: ValueOf; [INPUT_IDS.OLD_POLICY_NAME]: string; [INPUT_IDS.OWNER_ACCOUNT_ID]: string; - [INPUT_IDS.PARTICIPANT_ACCOUNT_IDS]: string; [INPUT_IDS.PARTICIPANTS]: string; [INPUT_IDS.PERMISSIONS]: string; [INPUT_IDS.POLICY_AVATAR]: string; diff --git a/src/types/onyx/Report.ts b/src/types/onyx/Report.ts index 1dffac0701ea..cb02c5f5751a 100644 --- a/src/types/onyx/Report.ts +++ b/src/types/onyx/Report.ts @@ -3,7 +3,6 @@ import type CONST from '@src/CONST'; import type ONYXKEYS from '@src/ONYXKEYS'; import type CollectionDataSet from '@src/types/utils/CollectionDataSet'; import type * as OnyxCommon from './OnyxCommon'; -import type PersonalDetails from './PersonalDetails'; import type {PolicyReportField} from './Policy'; /** Preference that defines how regular the chat notifications are sent to the user */ @@ -233,24 +232,12 @@ type Report = OnyxCommon.OnyxValueWithOfflineFeedback< /** Whether the report is hidden from options list */ isHidden?: boolean; - /** Whether the report is a chat room */ - isChatRoom?: boolean; - - /** Collection of participants personal details */ - participantsList?: PersonalDetails[]; - - /** Text to be displayed in options list, which matches reportName by default */ - text?: string; - /** Collection of participant private notes, indexed by their accountID */ privateNotes?: Record; /** Whether participants private notes are being currently loaded */ isLoadingPrivateNotes?: boolean; - /** Whether the report is currently selected in the options list */ - selected?: boolean; - /** Pending members of the report */ pendingChatMembers?: PendingChatMember[]; @@ -278,9 +265,6 @@ type Report = OnyxCommon.OnyxValueWithOfflineFeedback< /** Whether the report is archived */ // eslint-disable-next-line @typescript-eslint/naming-convention private_isArchived?: string; - - /** Participant account id's */ - participantAccountIDs?: number[]; }, PolicyReportField['fieldID'] >;