-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CP Staging] Fix - App crashes when scrubbing through an mp4 file on attachment upload preview #37007
[CP Staging] Fix - App crashes when scrubbing through an mp4 file on attachment upload preview #37007
Conversation
8e8b3ee
to
b11c83f
Compare
@@ -67,6 +67,9 @@ function PlaybackContextProvider({children}) { | |||
|
|||
const checkVideoPlaying = useCallback( | |||
(statusCallback) => { | |||
if (!(currentVideoPlayerRef && currentVideoPlayerRef.current && currentVideoPlayerRef.current.getStatusAsync)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will ask for the CP
✋ 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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