File tree 3 files changed +3
-8
lines changed
3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 2
2
import { ExpensiMark } from 'expensify-common' ;
3
3
import Onyx from 'react-native-onyx' ;
4
4
import ONYXKEYS from '@src/ONYXKEYS' ;
5
- import * as Localize from './Localize' ;
6
5
import Log from './Log' ;
7
- import { getEffectiveDisplayName } from './PersonalDetailsUtils' ;
8
6
import * as ReportConnection from './ReportConnection' ;
9
7
10
8
const accountIDToNameMap : Record < string , string > = { } ;
@@ -17,7 +15,7 @@ Onyx.connect({
17
15
return ;
18
16
}
19
17
20
- accountIDToNameMap [ personalDetails . accountID ] = getEffectiveDisplayName ( personalDetails ) ?? Localize . translateLocal ( 'common.hidden' ) ;
18
+ accountIDToNameMap [ personalDetails . accountID ] = personalDetails . login ?? personalDetails . displayName ?? String ( personalDetails . accountID ) ;
21
19
} ) ;
22
20
} ,
23
21
} ) ;
Original file line number Diff line number Diff line change @@ -1303,7 +1303,7 @@ function getReportActionMessageFragments(action: ReportAction): Message[] {
1303
1303
}
1304
1304
1305
1305
if ( isActionOfType ( action , CONST . REPORT . ACTIONS . TYPE . ROOM_CHANGE_LOG . UPDATE_ROOM_DESCRIPTION ) ) {
1306
- const message = ` ${ Localize . translateLocal ( 'roomChangeLog.updateRoomDescription' ) } ${ getOriginalMessage ( action ) ?. description } ` ;
1306
+ const message = getUpdateRoomDescriptionMessage ( action ) ;
1307
1307
return [ { text : message , html : `<muted-text>${ message } </muted-text>` , type : 'COMMENT' } ] ;
1308
1308
}
1309
1309
@@ -1585,7 +1585,7 @@ function getExportIntegrationActionFragments(reportAction: OnyxEntry<ReportActio
1585
1585
function getUpdateRoomDescriptionMessage ( reportAction : ReportAction ) : string {
1586
1586
const originalMessage = getOriginalMessage ( reportAction ) as OriginalMessageChangeLog ;
1587
1587
if ( originalMessage ?. description ) {
1588
- return `${ Localize . translateLocal ( 'roomChangeLog.updateRoomDescription' ) } ${ Parser . htmlToText ( originalMessage ?. description ) } ` ;
1588
+ return `${ Localize . translateLocal ( 'roomChangeLog.updateRoomDescription' ) } ${ originalMessage ?. description } ` ;
1589
1589
}
1590
1590
1591
1591
return Localize . translateLocal ( 'roomChangeLog.clearRoomDescription' ) ;
Original file line number Diff line number Diff line change @@ -645,9 +645,6 @@ function ReportActionItem({
645
645
children = < ReportActionItemBasicMessage message = { translate ( 'iou.unheldExpense' ) } /> ;
646
646
} else if ( action . actionName === CONST . REPORT . ACTIONS . TYPE . MERGED_WITH_CASH_TRANSACTION ) {
647
647
children = < ReportActionItemBasicMessage message = { translate ( 'systemMessage.mergedWithCashTransaction' ) } /> ;
648
- } else if ( action . actionName === CONST . REPORT . ACTIONS . TYPE . ROOM_CHANGE_LOG . UPDATE_ROOM_DESCRIPTION ) {
649
- const message = ReportActionsUtils . getUpdateRoomDescriptionMessage ( action ) ;
650
- children = < ReportActionItemBasicMessage message = { message } /> ;
651
648
} else if ( ReportActionsUtils . isActionOfType ( action , CONST . REPORT . ACTIONS . TYPE . DISMISSED_VIOLATION ) ) {
652
649
children = < ReportActionItemBasicMessage message = { ReportActionsUtils . getDismissedViolationMessageText ( ReportActionsUtils . getOriginalMessage ( action ) ) } /> ;
653
650
} else if ( action . actionName === CONST . REPORT . ACTIONS . TYPE . POLICY_CHANGE_LOG . ADD_TAG ) {
You can’t perform that action at this time.
0 commit comments