fix: Thread title changes to user display name after selecting the thread on "In" list#74940
fix: Thread title changes to user display name after selecting the thread on "In" list#74940cead22 merged 3 commits intoExpensify:mainfrom
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
| function createOptionFromReport(report: Report, personalDetails: OnyxEntry<PersonalDetailsList>, reportAttributesDerived?: ReportAttributesDerivedValue['reports'], config?: PreviewConfig) { | ||
| const accountIDs = getParticipantsAccountIDsForDisplay(report); | ||
|
|
||
| return { |
There was a problem hiding this comment.
Potential Breaking Change
The function signature change removes the hardcoded {showPersonalDetails: true} that was always passed to createOption. Now when config is undefined, showPersonalDetails defaults to false (see line 836).
Issue: The call site in src/components/Search/SearchFiltersChatsSelector.tsx (line 63) was not updated in this PR:
const report = getSelectedOptionData(createOptionFromReport({...reports?.[`${ONYXKEYS.COLLECTION.REPORT}${id}`], reportID: id}, personalDetails, reportAttributesDerived));This call will now receive showPersonalDetails: false instead of the previous true, potentially causing incorrect display names in the search filters chat selector.
Suggested fix: Either:
- Add a default value to the function signature:
config: PreviewConfig = {showPersonalDetails: true} - Update the SearchFiltersChatsSelector.tsx call site to explicitly pass
{showPersonalDetails: true}as the 4th parameter
This ensures backward compatibility and prevents unintended behavior changes in components that weren't updated.
There was a problem hiding this comment.
It looks like this comment is right and we should pass {showPersonalDetails: true} in src/components/Search/SearchFiltersChatsSelector.tsx
trjExpensify
left a comment
There was a problem hiding this comment.
No qualms with the fix 👍
|
@etCoderDysto Could you help merge main? |
|
@truph01 I have merged main |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-11-21.at.09.42.37.movAndroid: mWeb ChromeScreen.Recording.2025-11-21.at.09.39.20.moviOS: mWeb SafariScreen.Recording.2025-11-21.at.09.38.33.movMacOS: Chrome / SafariScreen.Recording.2025-11-21.at.09.33.54.movMacOS: DesktopScreen.Recording.2025-11-21.at.09.39.52.mov |
| function createOptionFromReport(report: Report, personalDetails: OnyxEntry<PersonalDetailsList>, reportAttributesDerived?: ReportAttributesDerivedValue['reports'], config?: PreviewConfig) { | ||
| const accountIDs = getParticipantsAccountIDsForDisplay(report); | ||
|
|
||
| return { |
There was a problem hiding this comment.
It looks like this comment is right and we should pass {showPersonalDetails: true} in src/components/Search/SearchFiltersChatsSelector.tsx
|
@truph01 please complete this part of the checklist
|
The current issue caused because we are passing |
|
✋ 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/cead22 in version: 9.2.63-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.63-8 🚀
|


Explanation of Change
Fixed Issues
$ #73549
PROPOSAL: #73549 (comment)
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Test 1
Test 2 (#71209 (comment))
Test 3 (#73267 (comment))
Search in [User A's display name]is displayed in under search compose boxPR 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.Screen.Recording.2025-11-12.at.4.57.15.in.the.afternoon.mp4
Android: mWeb Chrome
android.chrome.Screen.Recording.2025-11-12.at.5.02.02.in.the.afternoon.mp4
iOS: Native
ios.Screen.Recording.2025-11-12.at.4.48.18.in.the.afternoon.mp4
iOS: mWeb Safari
ios.safari.Screen.Recording.2025-11-12.at.4.50.42.in.the.afternoon.mp4
MacOS: Chrome / Safari
web.Screen.Recording.2025-11-12.at.4.40.29.in.the.afternoon.mp4
MacOS: Desktop
Desktop.Screen.Recording.2025-11-12.at.5.16.52.in.the.afternoon.mp4