Fix recent report is missing from the assignee list#41232
Conversation
|
@mananjadhav 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] |
|
Additional video showing the original issue is still fixed. Screen.Recording.2024-04-30.at.00.47.14.mov |
|
@bernhardoj Can you fix the lint issues. |
|
I think I am going to ask @marcochavezf to confirm this. |
|
|
|
Then can we treat this as a separate task instead of a regression? @bernhardoj and I can still take this forward, if it works for them. |
|
After reading through the code, we can fix the This way, we would have the same behavior as the previous one. Anyone agree? |
Why this would not be a regression anymore? |
I think this would work, yep. |
|
Updated! Please check! |
| } else { | ||
| accountIDs = Object.keys(report.participants ?? {}).map(Number); | ||
| if (ReportUtils.isOneOnOneChat(report)) { | ||
| // For 1:1 chat, we don't want to include currentUser as participants |
There was a problem hiding this comment.
| // For 1:1 chat, we don't want to include currentUser as participants | |
| // For 1:1 chat, we don't want to include currentUser as participants in order to not mark 1:1 chats as having multiple participants |
| } else { | ||
| accountIDs = Object.keys(report.participants ?? {}).map(Number); | ||
| if (ReportUtils.isOneOnOneChat(report)) { | ||
| // For 1:1 chat, we don't want to include currentUser as participants |
There was a problem hiding this comment.
| // For 1:1 chat, we don't want to include currentUser as participants | |
| // For 1:1 chat, we don't want to include currentUser as participants in order to not mark 1:1 chats as having multiple participants |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-recent-assignee.movAndroid: mWeb Chromemweb-chrome-recent-assignee.moviOS: Nativeios-recent-assignee.moviOS: mWeb Safarimweb-safari-recent-assignee.movMacOS: Chrome / Safariweb-recent-assignee.movMacOS: Desktopdesktop-recent-assignee.mov |
marcochavezf
left a comment
There was a problem hiding this comment.
LGTM, thank you guys!
|
✋ 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 production by https://github.com/marcaaron in version: 1.4.70-5 🚀
|

Details
A regression from #40271. The recent section is missing.
Fixed Issues
$ #41138
$ #37519
PROPOSAL:
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop