Fix: After going back from a thread, clicking on New Message button doesn't scroll to the new message at the bottom#22645
Conversation
|
@thesahindia 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] |
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
@thesahindia, could you please review my pull request (PR)? Please let me know if I missed anything in the PR. |
|
I'll be taking this over! |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-18.at.2.56.25.PM.movMobile Web - ChromeScreen.Recording.2023-07-18.at.3.05.35.PM.movMobile Web - SafariScreen.Recording.2023-07-18.at.3.03.09.PM.movDesktopScreen.Recording.2023-07-18.at.7.02.55.PM.moviOSScreen.Recording.2023-07-18.at.3.02.35.PM.movAndroidScreen.Recording.2023-07-18.at.3.06.37.PM.mov |
|
@allroundexperts This is the proposal for this PR. Thanks. |
|
Hi @lazar-stamenkovic! Also, the screen recording for Desktop is missing. |
|
Hi @allroundexperts , Please take a look again. |
You can open the console and just enter |
|
it works for desktop perfectly. i attached screen recording. Electron.-.New.Expensify.-.18.July.2023.mp4 |
|
@allroundexperts i attached the screen record on Desktop in description. |
|
Thanks for adding the screen recording @lazar-stamenkovic! I'm not sure why it wasn't working previously. I just tested it again and it seems to work fine. Maybe I was on a wrong branch. |
|
Can you please add QA steps as well? |
|
@allroundexperts I added QA steps in description. |
@allroundexperts thanks for your review. |
|
@deetergp please review the PR and let me know if you need any updating. |
| }; | ||
|
|
||
| let newActionSubscriber = defaultNewActionSubscriber; | ||
| // new action subscriber array for report pages |
There was a problem hiding this comment.
| // new action subscriber array for report pages | |
| // New action subscriber array for report pages |
|
@lazar-stamenkovic lint is failing and one NAB |
@mountiny fixed lint errors. thanks for review |
mountiny
left a comment
There was a problem hiding this comment.
Thanks everyone!
@lazar-stamenkovic Congratulations to your first contribution! We are very glad to have you here, hope to see many more 🍾
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Thanks @mountiny |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.44-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.44-2 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.45-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|

Details
After going back from a thread, clicking on New Message button doesn't scroll to the new message at the bottom. This PR fixes this bug.
Fixed Issues
$ #21603
PROPOSAL: #21603 (comment), #21603 (comment)
Tests
Offline tests
Same above
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
New.Expensify.-.web.mp4
Mobile Web - Chrome
expensify-mobile-chrome.mov
Mobile Web - Safari
Expensify-mobile-safari-compress.mov
Desktop
Electron.-.New.Expensify.-.18.July.2023.mp4
iOS
expensify-ios.mov
Android
expensify-android.mp4