-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2024-03-06] [$500] Sounds for receiving message and for being tagged somewhere #36542
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0158c6c5402e5ea2cd |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 ( |
Thanks! Again cc @kirillzyusko and @hannojg for visibility |
Triggered auto assignment to @stephanieelliott ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When a user is mentioned, a sound is triggered. However, the current implementation plays the sound regardless of who is mentioned. What is the root cause of that problem?here: Lines 528 to 531 in 28bcc85
the code checks if a message includes a mention without verifying the identity of the mentioned user. What changes do you think we should make in order to solve the problem?To address this, we propose modifying the condition as follows: // mention user
if ('html' in message && typeof message.html === 'string' && message.html.includes(`<mention-user>@${currentEmail}</mention-user>`)) {
return playSound(SOUNDS.ATTENTION);
} This adjustment ensures that the sound is played only when the current user is mentioned. What alternative solutions did you explore? (Optional)N/A |
@rayane-djouah yes, i think it's a correct solution that you are suggesting 👍 |
Hey @cubuspl42 proposal for you to review here when you get a sec! |
🎀 👀 🎀 |
Triggered auto assignment to @flodnv, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@flodnv Would it be possible to add more metadata to this structure returned from the backend? I know that in another place... App/src/types/onyx/OriginalMessage.ts Line 174 in 28bcc85
...we have access to the account IDs of the mentions. |
Probably, but my plate is full, so either @stephanieelliott or @shawnborton will have to find someone to work on this (it's not clear to me which part of the roadmap this is on) |
cc @Julesssss - we talked about putting this on the VSB project. |
Ah, I was using this issue for the native mobile audio bug |
Happy to do whatever you think is best. What do you think about consolidating these issues into just one follow up issue for the couple of bugs that have popped up? |
Sounds like we don't want to consolidate all sound issues. But @kirillzyusko curious if you are planning to handle this as a follow up? |
I said this in Slack, but just to clarify: We'll keep the mobile bugs separate as testing mobile complicates the testing of other issues. I'll help @kirillzyusko to review and test |
still interested to take this issue if my proposal is accepted |
Thanks @rayane-djouah, lets go with your solution as we don't have time for any backend changes here. |
📣 @cubuspl42 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @rayane-djouah 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
I wouldn't like to fix all sounds-related issues in a single MR, but I'm not agains the idea of creation kind of @Julesssss @shawnborton What do you think? 👀 |
I'd be down with that, what do you think @Julesssss ? |
Yeah, that sounds ideal 👍 I created this issue, please add any issues/bugs you are aware of. Also, @kirillzyusko could please comment on the issue so I can assign you too. thanks |
Fix for this issue is on staging, ended up testing it and it's working great 👍 |
This was deployed to prod on 2/28, seems the automation didn't work so am updating manually |
@stephanieelliott friendly reminder for payment. Thank you! |
Summarizing payment on this issue:
Upwork job is here: https://www.upwork.com/jobs/~0158c6c5402e5ea2cd |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.41-2
Reproducible in staging?: y
Reproducible in production?: new feature
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @mountiny
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1707866137747939
Action Performed:
Expected Result:
Should not receive sound notification. This should only happen when you are tagged (directly or (at)here)
Actual Result:
you still receive the sound effect as if you would be mentioned
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Recording.2730.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: