-
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
[$1000] Chat - Room admin sees all welcome messages to invited users (appears after page refresh) #19689
Comments
Triggered auto assignment to @michaelhaxhiu ( |
Bug0 Triage Checklist (Main S/O)
|
@michaelhaxhiu Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
ProposalPlease re-state the problem that we are trying to solve in this issue.We want the welcome messages to show only for intended users What is the root cause of that problem?We are not filtering welcome messages for non-intended users. When User A creates a room, sets a welcome message and then User B joins, the api creates a new Similarly when another user (User C) joins, the api will create a new What changes do you think we should make in order to solve the problem?We should filter welcome message and show only to intended users. In shouldReportActionBeVisible(), we should add a condition to show whisper messages when the email of the login user is included in the whisper message. Something like this // filters out messages where the login user is not a participant (not in whisperedTo array)
const whisperedTo = lodashGet(reportAction, 'whisperedTo', []);
if (whisperedTo.length > 0 && !_.includes(whisperedTo, sessionEmail)) {
return false
} The session email we can get from onyx in let sessionEmail;
Onyx.connect({
key: ONYXKEYS.SESSION,
callback: (val) => (sessionEmail = val ? val.email : null),
}); ResultScreen.Recording.2023-05-31.at.3.44.45.PM.movOptional: We can also check for report type i.e with What alternative solutions did you explore? (Optional)N/A |
Ya this is strange UX for sure. I agree with the expected outcome. edit: Wow Seems I failed to add the |
Job added to Upwork: https://www.upwork.com/jobs/~01454f0d4365208af8 |
Current assignee @michaelhaxhiu is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
Triggered auto assignment to @dangrous ( |
1 proposal already added |
@abdulrahuman5196 if you have time to take a look at @huzaifa-99's proposal that would be great! |
Oh hm, yeah whispers shouldn't be sent at all to anyone who isn't the recipient, i don't think. I'll cc @pecanoro here in case she has some ideas, but otherwise I'll take a look at the backend and see what I can figure out. |
This is by design, whoever sent the whisper can see the message as well so they know who was sent to (both are aware). However, it's true this can be a bit more annoying for welcome messages as they can be sent to a lot of people if they join a big room. I vote to close it for now and deal with it later. Or maybe just bring up the discussion to Slack in product to see how we should approach it. We would need some kind of flag to tell welcome messages apart from normal whispers. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Issue found when executing PR #18662
Action Performed:
Expected Result:
Welcome messages should be visible only to invited users
Actual Result:
Welcome message to every user that joined the room is visible to admin (with tag, that message is visible only to that joining user)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.19.1
Reproducible in staging?: yes
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
Notes/Photos/Videos: Any additional supporting documentation
https://platform.applause.com/services/links/v1/external/86a90ede63d027d507e3b0d7caffd19534dbaef8b6bd1ac1d30e8c226d23d120
Expensify/Expensify Issue URL:
Issue reported by: Applause - Infernal team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: