-
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
[$500] Chat - Console error shows up when receiving message in #announce room #27447
Comments
Triggered auto assignment to @puneetlath ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Console error shows up when receiving message in #announce room. What is the root cause of that problem?In BrowserNotifications, we try to obtain the App/src/libs/Notification/LocalNotification/BrowserNotifications.js Lines 113 to 114 in 95c9e47
What changes do you think we should make in order to solve the problem?Change the implementation to try to get the -const roomName = _.get(report, 'displayName', '');
+const roomName = _.get(report, 'displayName', _.get(report, 'reportName', '')); or +const roomName = _.has(report, 'displayName') ? _.get(report, 'displayName', '') : _.get(report, 'reportName', ''); We can also consider setting a default string if neither Alternatively, if we don't use a default string, perform an early return if the value ends up being an empty string in this scenario. What alternative solutions did you explore? (Optional)None. |
Job added to Upwork: https://www.upwork.com/jobs/~0183471120ce59aad5 |
Current assignee @puneetlath is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
📣 @MuzanEDM! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Console error and no notification received when sending a new message from another client on a chat room. What is the root cause of that problem?The error happens when we are constructing the title and body text of the notification. If it's a chat room, we want the title of the notification to be the room name and we get it from App/src/libs/Notification/LocalNotification/BrowserNotifications.js Lines 113 to 116 in 95c9e47
However, TLDR; What changes do you think we should make in order to solve the problem?The solution is (also the same as the mentioned issue above) to use
|
Dupe of #23234 |
Thanks @hungvu193 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR #26850
Action Performed:
Expected Result:
Console error will not show up on receiver end (User A)
Actual Result:
Console error shows up on receiver end (User A)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.70-2
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Bug6200454_20230914_220712.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: