[CP Staging] Fix - App crashes when scrubbing through an mp4 file on attachment upload preview#37007
Conversation
8e8b3ee to
b11c83f
Compare
|
|
||
| const checkVideoPlaying = useCallback( | ||
| (statusCallback) => { | ||
| if (!(currentVideoPlayerRef && currentVideoPlayerRef.current && currentVideoPlayerRef.current.getStatusAsync)) { |
There was a problem hiding this comment.
We need to check if the function isn't null, if it is then we can safely keep status default value (which is false).
|
@shubham1206agra 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] |
|
@kowczarz Can you please check this? It is showing promise rejection warning while scrubbing. Screen.Recording.2024-02-22.at.10.41.42.PM.mov |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-02-22.at.11.07.56.PM.movAndroid: mWeb ChromeScreen.Recording.2024-02-22.at.10.32.06.PM.moviOS: NativeScreen.Recording.2024-02-22.at.10.41.42.PM.moviOS: mWeb SafariScreen.Recording.2024-02-22.at.10.24.04.PM.movMacOS: Chrome / SafariScreen.Recording.2024-02-22.at.10.21.20.PM.movMacOS: DesktopScreen.Recording.2024-02-22.at.10.34.48.PM.mov |
|
@shubham1206agra it's caused by Cc. @rlinoz, since you're the internal engineer who is assigned to the issue. |
|
We are not deploying this week anymore, so if we can get the warning fixed tomorrow that is fine, otherwise I agree we can fix it in a separate PR. |
|
@rlinoz lets get the crash fixed in staging asap, the warning can follow up whenever fixed |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…lowups/fix-crashing [CP Staging] Fix - App crashes when scrubbing through an mp4 file on attachment upload preview (cherry picked from commit 437d75c)
|
🚀 Cherry-picked to staging by https://github.com/chiragsalian in version: 1.4.43-14 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.43-20 🚀
|
Details
Fixed Issues
$ #36905
Tests
Offline tests
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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.native_H.265.mp4
Android: mWeb Chrome
android.web_H.265.mp4
iOS: Native
ios_H.265.mp4
iOS: mWeb Safari
ios.web_H.265.mp4
MacOS: Chrome / Safari
web_H.265.mp4
MacOS: Desktop
desktop_H.265.mp4