Skip to content

Commit df69c80

Browse files
Merge pull request Expensify#45978 from Expensify/scott-removeChronosBeta
Remove the chronosInCash beta
2 parents a5a17b0 + ad906ad commit df69c80

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

src/CONST.ts

-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@ const CONST = {
363363
},
364364
BETAS: {
365365
ALL: 'all',
366-
CHRONOS_IN_CASH: 'chronosInCash',
367366
DEFAULT_ROOMS: 'defaultRooms',
368367
VIOLATIONS: 'violations',
369368
DUPE_DETECTION: 'dupeDetection',

src/libs/OptionsListUtils.ts

+1-12
Original file line numberDiff line numberDiff line change
@@ -1713,14 +1713,12 @@ function canCreateOptimisticPersonalDetailOption({
17131713
* - There's no matching recent report and personal detail option
17141714
* - The searchValue is a valid email or phone number
17151715
* - The searchValue isn't the current personal detail login
1716-
* - We can use chronos or the search value is not the chronos email
17171716
*/
17181717
function getUserToInviteOption({
17191718
searchValue,
17201719
excludeUnknownUsers = false,
17211720
optionsToExclude = [],
17221721
selectedOptions = [],
1723-
betas,
17241722
reportActions = {},
17251723
showChatPreviewLine = false,
17261724
}: GetUserToInviteConfig): ReportUtils.OptionData | null {
@@ -1731,17 +1729,8 @@ function getUserToInviteOption({
17311729
const isValidPhoneNumber = parsedPhoneNumber.possible && Str.isValidE164Phone(LoginUtils.getPhoneNumberWithoutSpecialChars(parsedPhoneNumber.number?.input ?? ''));
17321730
const isInOptionToExclude =
17331731
optionsToExclude.findIndex((optionToExclude) => 'login' in optionToExclude && optionToExclude.login === PhoneNumber.addSMSDomainIfPhoneNumber(searchValue).toLowerCase()) !== -1;
1734-
const isChronosEmail = searchValue === CONST.EMAIL.CHRONOS;
17351732

1736-
if (
1737-
!searchValue ||
1738-
isCurrentUserLogin ||
1739-
isInSelectedOption ||
1740-
(!isValidEmail && !isValidPhoneNumber) ||
1741-
isInOptionToExclude ||
1742-
(isChronosEmail && !Permissions.canUseChronos(betas)) ||
1743-
excludeUnknownUsers
1744-
) {
1733+
if (!searchValue || isCurrentUserLogin || isInSelectedOption || (!isValidEmail && !isValidPhoneNumber) || isInOptionToExclude || excludeUnknownUsers) {
17451734
return null;
17461735
}
17471736

src/libs/Permissions.ts

-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ function canUseAllBetas(betas: OnyxEntry<Beta[]>): boolean {
77
return !!betas?.includes(CONST.BETAS.ALL);
88
}
99

10-
function canUseChronos(betas: OnyxEntry<Beta[]>): boolean {
11-
return !!betas?.includes(CONST.BETAS.CHRONOS_IN_CASH) || canUseAllBetas(betas);
12-
}
13-
1410
function canUseDefaultRooms(betas: OnyxEntry<Beta[]>): boolean {
1511
return !!betas?.includes(CONST.BETAS.DEFAULT_ROOMS) || canUseAllBetas(betas);
1612
}
@@ -60,7 +56,6 @@ function canUseLinkPreviews(): boolean {
6056
}
6157

6258
export default {
63-
canUseChronos,
6459
canUseDefaultRooms,
6560
canUseLinkPreviews,
6661
canUseViolations,

0 commit comments

Comments
 (0)