fix: unsub userIsTyping event on report screen unmount#43542
Conversation
Signed-off-by: dominictb <tb-dominic@outlook.com>
Signed-off-by: dominictb <tb-dominic@outlook.com>
jjcoffee
left a comment
There was a problem hiding this comment.
@dominictb Personally, I feel like addition of useReportPusherEventSubscription is a bit of over-engineering for this case. Can you revert and let's just stick with a simpler solution? Thanks!
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-app-2024-06-11_16.34.23.mp4Android: mWeb Chromeandroid-chrome-2024-06-11_16.38.27.mp4iOS: Nativeios-app-2024-06-11_16.55.19.mp4iOS: mWeb Safariios-safari-2024-06-11_16.58.13.mp4MacOS: Chrome / Safaridesktop-chrome-2024-06-11_15.56.44.mp4MacOS: Desktopdesktop-app-2024-06-11_16.15.57.mp4 |
|
@jjcoffee alright then, gimme sometime |
This reverts commit 8ff0eff.
Signed-off-by: dominictb <tb-dominic@outlook.com>
|
done! |
jjcoffee
left a comment
There was a problem hiding this comment.
Re-approving to get the test to re-run!
|
@roryabraham Friendly bump for your review on this 🙏 |
|
Sorry for the delay, looks good 👍🏼 |
|
✋ 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/roryabraham in version: 9.0.2-0 🚀
|
|
@jjcoffee @roryabraham I don't think we can debug the logs per PR steps. Can this be verified internally? |
|
@kbecciv Oh I'm sorry, we should've made the QA instructions clearer! You need to enable the "Verbose" option in Chrome DevTools, by tapping the down arrow next to "Default levels". That way you'll see the full logs. Here's my results from testing on latest staging: desktop-chrome-2024-06-26_11.11.39.mp4 |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.3-7 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|

Details
Fixed Issues
$ #43089
PROPOSAL: #43089 (comment)
Tests
Verify: In the debug log we have these 3 log lines after exit from a chat report

i.e: all pusher event subscription has been cancelled after report screen is unmounted
Offline tests
QA Steps
Verify: In the debug log we have these 3 log lines indicating event unsubscription after exit from a chat report

i.e: all pusher event subscription has been cancelled after report screen is unmounted
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