-
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][No QA] Do not show push notifications for whispers targeted to others #36570
Conversation
@roryabraham 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] |
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.
LGTM
@@ -1972,6 +1972,12 @@ function shouldShowReportActionNotification(reportID: string, action: ReportActi | |||
return false; | |||
} | |||
|
|||
// If this is a whisper targeted to someone else, don't show it | |||
if (action && ReportActionsUtils.isWhisperActionTargetedToOthers(action)) { |
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.
It might be clearer if the condition would get for whispers to you only and return true but NAB
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.
ah yes, but this requires more changes, I'll open a refactor PR that will be properly tested/QA'ed.
Reviewer Checklist
Screenshots/VideosStraight forward change, author tested Android: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
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.
LGTM
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…ers-for-others [CP Staging][No QA] Do not show push notifications for whispers targeted to others (cherry picked from commit 7512e25)
🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 1.4.42-1 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.4.42-5 🚀
|
Needs to be CP'ed into Staging to unblock comment-linking asap.
WEB and DESKTOP only!!!
Note: Added screenshots instead of screen recordings because the push notifications are muted while recording the screen.
Details
Fixed Issues
#34982
PROPOSAL:
Tests
Checkout this Web-E PR
Offline tests
N/A
QA Steps
No QA
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop