[Fix]: New chat shows time zone for Unvalidated Accounts#39384
[Fix]: New chat shows time zone for Unvalidated Accounts#39384aldo-expensify merged 5 commits intoExpensify:mainfrom
Conversation
|
The PR is ready for your review @mollfpr , you can go forward with the checklist if you want, i'll update the videos tomorrow ;) |
|
@GandalfGwaihir Could you add the screenshots of your tests? |
|
On it... |
|
PR all yours @mollfpr , reassure is failing on main for all PR's :) |
Reviewer Checklist
Screenshots/Videos |
mollfpr
left a comment
There was a problem hiding this comment.
LGTM 👍
@GandalfGwaihir Could you try pull main and see if the perf test passed?
|
merged, lets hope the tests pass, reassure still fails on main ig, but lets see how this one does ;) |
| // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing | ||
| const isParticipantValidated = reportRecipient?.validated || false; |
There was a problem hiding this comment.
| // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing | |
| const isParticipantValidated = reportRecipient?.validated || false; | |
| const isParticipantValidated = reportRecipient?.validated ?? false; |
Why did we add // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing instead of using ?? as the lint error suggested to? the lint checks were added for a reason and are not meant to be disabled without a good reason. Is there a good reason in this case to disable the check?
There was a problem hiding this comment.
Ahh no, you're right it is a boolean value, so if validated is undefined/null it will still become false, i assumed it to be a string for a second, commiting the suggestions right away
There was a problem hiding this comment.
Thanks for fixing! @mollfpr @GandalfGwaihir always avoid disabling rules unless there is a good reason for it :)
Co-authored-by: Aldo Canepa Garay <87341702+aldo-expensify@users.noreply.github.com>
|
Reason to disable null assertion on assumption, fixed it now :) thanks |
|
✋ 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/aldo-expensify in version: 1.4.61-0 🚀
|
|
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 1.4.61-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.61-8 🚀
|






Details
This was a
major bugwhich showed timezones even for unvalidated accounts, this was a big privacy issue which is addressed in the PRFixed Issues
$ #38581
PROPOSAL: #38581 (comment)
Tests
Same as QA
Offline tests
Same as QA
QA Steps
Note
Please strictly search for new accounts who you never had conversation with, we don't want to show timezone to unvalidated users
Unvalidated AccountExample: Enter 9894706467/+19894706461 (use non-existing local number)
Observe that the Time is hidden for that user/ Also observe that time is visible for a know user.
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
MacOS: Chrome / Safari
MacOS: Desktop
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari