Skip to content

Commit

Permalink
Merge pull request #55716 from callstack-internal/JKobrynski/fix/trac…
Browse files Browse the repository at this point in the history
…k-expense-bug

[CP Staging] Fix - Self DM - User can submit track expense to self (You) again and send invoice to self

(cherry picked from commit d07ec9b)

(CP triggered by mountiny)
  • Loading branch information
grgia authored and OSBotify committed Jan 24, 2025
1 parent 2a11641 commit 0d7bca5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/iou/request/MoneyRequestParticipantsSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import usePolicy from '@hooks/usePolicy';
import useScreenWrapperTranstionStatus from '@hooks/useScreenWrapperTransitionStatus';
import useThemeStyles from '@hooks/useThemeStyles';
import {canUseTouchScreen} from '@libs/DeviceCapabilities';
import {isMovingTransactionFromTrackExpense} from '@libs/IOUUtils';
import Navigation from '@libs/Navigation/Navigation';
import {
filterAndOrderOptions,
Expand Down Expand Up @@ -122,7 +123,7 @@ function MoneyRequestParticipantsSelector({participants = CONST.EMPTY_ARRAY, onF
action,
shouldSeparateSelfDMChat: iouType !== CONST.IOU.TYPE.INVOICE,
shouldSeparateWorkspaceChat: true,
includeSelfDM: true,
includeSelfDM: !isMovingTransactionFromTrackExpense(action) && iouType !== CONST.IOU.TYPE.INVOICE,
},
);

Expand Down

0 comments on commit 0d7bca5

Please sign in to comment.