File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -773,6 +773,7 @@ const CONST = {
773
773
} ,
774
774
MAX_COUNT_BEFORE_FOCUS_UPDATE : 30 ,
775
775
MIN_INITIAL_REPORT_ACTION_COUNT : 15 ,
776
+ UNREPORTED_REPORTID : '0' ,
776
777
SPLIT_REPORTID : '-2' ,
777
778
ACTIONS : {
778
779
LIMIT : 50 ,
Original file line number Diff line number Diff line change @@ -281,7 +281,8 @@ function Search({queryJSON}: SearchProps) {
281
281
} ;
282
282
283
283
const openReport = ( item : TransactionListItemType | ReportListItemType | ReportActionListItemType ) => {
284
- let reportID = SearchUtils . isTransactionListItemType ( item ) && ! item . isFromOneTransactionReport ? item . transactionThreadReportID : item . reportID ;
284
+ const isFromSelfDM = item . reportID === CONST . REPORT . UNREPORTED_REPORTID ;
285
+ let reportID = SearchUtils . isTransactionListItemType ( item ) && ( ! item . isFromOneTransactionReport || isFromSelfDM ) ? item . transactionThreadReportID : item . reportID ;
285
286
286
287
if ( ! reportID ) {
287
288
return ;
You can’t perform that action at this time.
0 commit comments