-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix: When auto-reporting is disabled, user cannot submit expense to 1:1 DM from FAB #77149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@ikevin127 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@ikevin127 i will fix the failing jest tomorrow |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-hybrid.mp4Android: mWeb Chromeandroid-mweb.mp4iOS: HybridAppios-hybrid.moviOS: mWeb Safariios-mweb.movMacOS: Chrome / Safariweb.mov |
ikevin127
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟢 LGTM - Once failing workflow is addressed (probably a sync with main) this can be merged.
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix makes sense 👍
|
@twilight2294 Could you resolve the failing test? Thank you! |
|
@twilight2294 how's this coming? |
|
@ikevin127 PR is ready for your review. The bug which i was saying about already exists on prod, I will post bug report in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e1801e017e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6884e773e2
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
src/libs/actions/IOU/index.ts
Outdated
| if (chatReport && !isPolicyExpenseChat && !isPolicyExpenseChatReportUtil(chatReport) && !isSelfDM(chatReport)) { | ||
| const parentChatReportParticipants = Object.keys(chatReport.participants ?? {}).map(Number); | ||
| const expectedParticipants = [payerAccountID, payeeAccountID].sort(); | ||
| const sortedParentChatReportParticipants = parentChatReportParticipants.sort(); | ||
|
|
||
| const participantsMatch = | ||
| expectedParticipants.length === sortedParentChatReportParticipants.length && expectedParticipants.every((id, index) => id === sortedParentChatReportParticipants.at(index)); | ||
|
|
||
| if (!participantsMatch) { | ||
| chatReport = null; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid discarding group chat reports
When a money request is initiated from a non-policy group chat, the report’s participants list will include more than the payer/payee pair, so participantsMatch becomes false and the code nulls chatReport. The subsequent getChatByParticipants only searches 1:1 chats, so the request will be created in a DM instead of the original group chat, removing group visibility. This is a behavioral regression for requests started in group chats; consider exempting group chats (e.g., isGroupChat) from this participant-matching null-out.
Useful? React with 👍 / 👎.
✅ Sounds good to me as long as you have proof that the issue is already on production - meaning it can't be reported as a regression of this PR. @twilight2294 About the latest codex comment, is this a valid concern given your changes ? If it is I'd say it must be addressed - please let me know and once everything is addressed I will take a final pass at the PR with some tests to make sure we're ready to merge 🟢 |
|
sorry i missed your message, i thought the PR was pending for your review, I'm on it today |
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 04726920b6
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@mollfpr can you review this PR, thanks ! |
mollfpr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mollfpr in version: 9.3.11-16 🚀
|
Explanation of Change
Fixed Issues
$ #75109
PROPOSAL: #75109 (comment)
Tests
Offline tests
QA Steps
Precondition:
Test:
Verify that The expense will be created in 1:1 DM.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2025-12-09.at.8.32.53.PM.mov
Android: mWeb Chrome
Screen.Recording.2025-12-09.at.8.31.19.PM.mov
iOS: Native
Screen.Recording.2025-12-09.at.8.27.07.PM.mov
iOS: mWeb Safari
Screen.Recording.2025-12-09.at.8.28.01.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2025-12-09.at.8.23.42.PM.mov