[CP Staging] Revert "Merge pull request #79299 from parasharrajat/fix/whisper"#80117
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aac6d39878
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (report?.reportID) { | ||
| if (isPolicyExpenseChat(report)) { | ||
| inviteToRoomAction(report, ancestors, invitedEmailsToAccountIDs, currentUserPersonalDetails.timezone ?? CONST.DEFAULT_TIME_ZONE); | ||
| } else { | ||
| inviteToRoom(reportID, invitedEmailsToAccountIDs, formatPhoneNumber); | ||
| } | ||
| inviteToRoomAction(report, ancestors, invitedEmailsToAccountIDs, currentUserPersonalDetails.timezone ?? CONST.DEFAULT_TIME_ZONE); | ||
| clearUserSearchPhrase(); |
There was a problem hiding this comment.
Use API invite for non-policy rooms
This now always uses inviteToRoomAction, but that helper (see inviteToRoomAction in src/libs/actions/Report.ts) only calls addComment(...) and never hits INVITE_TO_ROOM/INVITE_TO_GROUP_CHAT or updates pending members. That means in normal rooms/group chats (i.e., not policy expense chats where concierge whispers are handled) adding members will just post a message and won’t actually invite or add participants, so the “Invite” flow silently fails for those rooms.
Useful? React with 👍 / 👎.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.3.5-2 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.5-7 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.3.6-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.6-4 🚀
|
Straight revert of #79299 to fix blockers.
Explanation of Change
Fixed Issues
$ #80101
$ #80062
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari