-
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
Fix missing sound when pay invoice #53129
Fix missing sound when pay invoice #53129
Conversation
@rushatgabhane 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] |
I also move the playSound to payMoneyRequest. I've tested it and the sounds played, but I can't test for the paying with held expenses case because the pay button doesn't show if we hold an expense after this PR: #51133 I'm not sure how we can send money anymore, so I don't touch sendMoneyElsewhere and sendMoneyWithWallet. |
@rushatgabhane what is your eta? |
reviewing |
@rushatgabhane how is it looking |
Reviewer Checklist
Screenshots/VideosAndroid: NativeWhatsApp.Video.2024-12-02.at.09.14.41.mp4Android: mWeb ChromeiOS: Nativehttps://github.com/user-attachments/assets/40ac9d22-c363-4bbc-a681-65e6db77df54iOS: mWeb SafariScreen.Recording.2024-12-02.at.08.55.23.movMacOS: Chrome / Safarihttps://github.com/user-attachments/assets/bda1f975-f94f-46e7-a011-1905fc3a7837MacOS: DesktopScreen.Recording.2024-12-02.at.08.56.30.mov |
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.
One question @bernhardoj
@@ -7496,6 +7497,7 @@ function payMoneyRequest(paymentType: PaymentMethodType, chatReport: OnyxTypes.R | |||
// Expensify Wallets. | |||
const apiCommand = paymentType === CONST.IOU.PAYMENT_TYPE.EXPENSIFY ? WRITE_COMMANDS.PAY_MONEY_REQUEST_WITH_WALLET : WRITE_COMMANDS.PAY_MONEY_REQUEST; | |||
|
|||
playSound(SOUNDS.SUCCESS); |
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.
This will change the behaviour now and play the sound if a report with held expenses is paid, right? Or is the behaviour same?
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.
That's the current behavior, right? I'm guessing you're talking about this one: #50572
On that issue, the sounds played when the confirm modal shows. So, it's fixed by preventing the sound from playing when the confirm modal shows and instead playing it when the user selects either of the options. This PR doesn't change that behavior.
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.
Ok thanks!
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.
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/mountiny in version: 9.0.71-0 🚀
|
@bernhardoj PR is failing on Android and iOS with this issue #52772 |
But that issue was created 2 weeks ago |
Lets continue on that linked PR |
I think the QA is trying to say that the sound is still missing on the hybrid app, which is an existing issue. |
🚀 Deployed to production by https://github.com/puneetlath in version: 9.0.71-2 🚀
|
Explanation of Change
Fixed Issues
$ #52792
PROPOSAL: #52792 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
As User B, send an invoice to User A
As User A,
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4