Commit a1c2147 1 parent e65e03e commit a1c2147 Copy full SHA for a1c2147
File tree 3 files changed +1
-9
lines changed
3 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -4997,7 +4997,6 @@ function shouldReportBeInOptionList({
4997
4997
report ?. reportName === undefined ||
4998
4998
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
4999
4999
report ?. isHidden ||
5000
- // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
5001
5000
( report ?. participantAccountIDs ?. length === 0 &&
5002
5001
! isChatThread ( report ) &&
5003
5002
! isPublicRoom ( report ) &&
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import localeCompare from './LocaleCompare';
18
18
import * as LocalePhoneNumber from './LocalePhoneNumber' ;
19
19
import * as Localize from './Localize' ;
20
20
import * as OptionsListUtils from './OptionsListUtils' ;
21
- import * as PersonalDetailsUtils from './PersonalDetailsUtils' ;
22
21
import * as ReportActionsUtils from './ReportActionsUtils' ;
23
22
import * as ReportUtils from './ReportUtils' ;
24
23
import * as TaskUtils from './TaskUtils' ;
@@ -239,11 +238,6 @@ function getOptionData({
239
238
participantAccountIDs = [ report . ownerAccountID ?? 0 ] ;
240
239
}
241
240
242
- // TODO: this is added for the testing purposes only - should be removed once participants list of the system report is filled
243
- if ( report . chatType === CONST . REPORT . CHAT_TYPE . SYSTEM ) {
244
- participantAccountIDs = [ report . ownerAccountID ?? 0 , ...PersonalDetailsUtils . getAccountIDsByLogins ( [ CONST . EMAIL . NOTIFICATIONS ] ) ] ;
245
- }
246
-
247
241
const participantPersonalDetailList = Object . values ( OptionsListUtils . getPersonalDetailsForAccountIDs ( participantAccountIDs , personalDetails ) ) as PersonalDetails [ ] ;
248
242
const personalDetail = participantPersonalDetailList [ 0 ] ?? { } ;
249
243
const hasErrors = Object . keys ( result . allReportErrors ?? { } ) . length !== 0 ;
Original file line number Diff line number Diff line change @@ -3090,8 +3090,7 @@ function completeOnboarding(
3090
3090
const targetEmail = isAccountIDOdd ? CONST . EMAIL . NOTIFICATIONS : CONST . EMAIL . CONCIERGE ;
3091
3091
3092
3092
const actorAccountID = PersonalDetailsUtils . getAccountIDsByLogins ( [ targetEmail ] ) [ 0 ] ;
3093
- // TODO: using getSystemChat is rather not necessary if we could have participants list filled correctly
3094
- const targetChatReport = isAccountIDOdd ? ReportUtils . getSystemChat ( ) : ReportUtils . getChatByParticipants ( [ actorAccountID ] ) ;
3093
+ const targetChatReport = ReportUtils . getChatByParticipants ( [ actorAccountID ] ) ;
3095
3094
const { reportID : targetChatReportID = '' , policyID : targetChatPolicyID = '' } = targetChatReport ?? { } ;
3096
3095
3097
3096
// Mention message
You can’t perform that action at this time.
0 commit comments