Repository navigation
Fix invoice thread opens when starting DM with the user after sending invoice to them - #45500
Conversation
|
@rayane-djouah 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-07-20.at.8.59.18.PM.movAndroid: mWeb ChromeScreen.Recording.2024-07-20.at.8.11.34.PM.moviOS: NativeiOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-07-20.at.20.08.59.mp4MacOS: Chrome / SafariScreen.Recording.2024-07-20.at.8.06.24.PM.movMacOS: DesktopScreen.Recording.2024-07-20.at.8.07.12.PM.mov |
|
@bernhardoj - Could you please confirm that all of |
|
Yes. This is all the usages:
Do you have any recommendation for the function name that is not too long? |
|
@bernhardoj Thank you for checking all the usages. |
| (isGroupChat(report) && !shouldIncludeGroupChats) | ||
| ) { | ||
| // Skip if it's not a 1:1 chat | ||
| if (!shouldIncludeGroupChats && !isOneOnOneChat(report)) { |
There was a problem hiding this comment.
is isOneOnOneChat or isDM more relevant in our case?
There was a problem hiding this comment.
I believe isOneOnOneChat.
rayane-d
left a comment
There was a problem hiding this comment.
Thank you!
Changes look good to me and test well. The reviewer checklist is also complete.
🎀👀🎀 C+ reviewed
|
✋ 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/cristipaval in version: 9.0.11-0 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 9.0.11-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.11-5 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.12-0 🚀
|
Details
When starting a chat, the app will look for the one on one chat by comparing the participants, but it matches the invoice thread participants. This PR fix it.
Fixed Issues
$ #45187
PROPOSAL: #45187 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4