-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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/37098: In app sound is played if user not viewing chat #37872
Fix/37098: In app sound is played if user not viewing chat #37872
Conversation
@abdulrahuman5196 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] |
This comment has been minimized.
This comment has been minimized.
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.
User B: Create a task and share it with user A
User A: Verify that No sounds play for the received message
I hear a sound on mobile when I am in a chat for tasks, but not for messages
@Julesssss Yes. Because in PR, we do not play sound in case of text message in a native device |
Ah okay. That seems incorrect to me as we should mute all sounds. But that is a seperate issue. |
I encountered an issue with my ios native device so I cannot make a screenshot in this platform. Will update once it is fixed |
@abdulrahuman5196 Bump for review in case you miss it |
Hi, I will review in my morning |
Reviewing now |
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.
@dukenv0307 Could you kindly check on the requested changes?
src/libs/actions/User.ts
Outdated
const reportIDs = reportActionsOnly.map((value) => value.key.split('_')[1]); | ||
const reportIDs = reportActionsOnly | ||
.map((value) => value.key.split('_')[1]) | ||
.filter((reportID) => reportID === Navigation.getTopmostReportId() && Visibility.isVisible() && Visibility.hasFocus()); |
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.
getTopmostReportId
is expected to give only one reportID. Why should we use filter
, we should use find in this case.
Since we use Visibility.isVisible() && Visibility.hasFocus()
, we shouldn't even map or filter in this case, since it would be obviously failing.
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.
@abdulrahuman5196 I updated the PR based on your comment
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.
Ping to review in case you miss it
Reviewing now |
Hi, @Julesssss , The code looks fine. could you re-add the build label to generate build? It would be good to test this on real device. |
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.
Generating test builds 👍
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Reviewing now |
In the mobile test steps. Why is the sound only for task message? Don't we support sounds for normal message. Did i miss some requirement? Log in with user A |
|
Got it thanks |
@dukenv0307 I am unable to hear sounds in simulator for native iOS. And I don't see native iOS video from your end as well. Is there some issue with iOS native? Should we reach out to internal engineers for testing iOS |
I will test iOS this morning on a physical iOS device. I can only test in-app behaviour though as for some reason, I can't get loud iOS notifications to work 😅 |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
That would be quite helpful. Thank you. I have tested on all other platforms. |
Ugh, my test iPhone refuses to play any sound within the app. It also has never played sounds for push notifications so I'm not sure if the app or device is bugged. Asking for someone else to help test... |
@abdulrahuman5196 @Julesssss I just updated ios native video. It works well |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeaz_recorder_20240319_214241.mp4Android: mWeb Chromeaz_recorder_20240319_220201.mp4iOS: NativeiOS: mWeb SafariScreen.Recording.2024-03-19.at.10.10.25.PM.mp4ScreenRecording.mp4MacOS: Chrome / SafariScreen.Recording.2024-03-19.at.9.20.39.PM.mp4MacOS: DesktopScreen.Recording.2024-03-19.at.9.29.20.PM.mp4 |
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.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @Julesssss
🎀 👀 🎀
C+ Reviewed
One last thing, @dukenv0307 would you mind re-merging main? Then I'll merge, 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/Julesssss in version: 1.4.56-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.56-8 🚀
|
Details
Fixed Issues
$ #37098
PROPOSAL: #37098 (comment)
Tests
In web:
In mobile native:
Offline tests
QA Steps
In web:
In mobile native:
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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 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
output.mp4
Android: mWeb Chrome
output.mp4
iOS: Native
Screen.Recording.2024-03-20.at.18.44.37.mov
iOS: mWeb Safari
output.mp4
MacOS: Chrome / Safari
Screencast.from.07-03-2024.15.48.04.webm
MacOS: Desktop
output.mp4