-
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] IOS - The Chat report displays the wrong Latest Sender's name in LHN after logging in #26609
Comments
Triggered auto assignment to @slafortune ( |
Bug0 Triage Checklist (Main S/O)
|
Applying the external label |
Job added to Upwork: https://www.upwork.com/jobs/~01bd85da703f1b3f23 |
Current assignee @slafortune is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ArekChr ( |
Still waiting on proposals. Assigning a new BZ member, I am out on sabbatical |
Triggered auto assignment to @isabelastisser ( |
Not overdue; waiting on proposals! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Still waiting for proposals! |
Still waiting for proposals. |
hey @barttom, any updates? |
I agree with the proposal from @MrMuzyk. Looks like we waiting for reviewing proposal by @aimane-chnaif. |
I tested and reproduced with #bobs-testing. It says "No activity yet" before opening report Screen.Recording.2023-10-31.at.8.16.24.AM.mov |
It's super weird that last message sender name is concierge@expensify.com before opening report Screen.Recording.2023-10-31.at.8.29.13.AM.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Issue 1. Wrong sender name (from whisper message) shows in LHN before opening report after visit that report, logout and re-login What is the root cause of that problem?Issue 1. wrong sender name (from whisper message) Lines 38 to 44 in deb267f
So lastActorDisplayName is set to sender name of whisper message here: Line 407 in deb267f
Issue 2. "No activity yet" after refresh Lines 459 to 463 in deb267f
lastActorDisplayName and lastAction don't exist so fallback to Localize.translate(preferredLocale, 'report.noActivityYet')
Summary: Line 22 in deb267f
But after logout, this data is not cleared so remains as stale value. What changes do you think we should make in order to solve the problem?Solution to Issue 1: Solution to Issue 2: Line 462 in deb267f
As a result, it shows What alternative solutions did you explore? (Optional)As others proposed, add new field |
🎀 👀 🎀 |
Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@thienlnam thanks for taking this issue. There are 2 possible solutions to fix this issue Issue: Solution 1: introduce new key (something like Which solution do you suggest? |
Ah interesting, so you might not have the personal details of the last actor accountID and so it just falls back to the most recent visible action? If we added the key lastActorDisplayName, that would essentially be the fallback if don't have that accountID in your personal details right because otherwise it would pull the actual display name or email. I don't really like the idea of adding another key to determine which name to show considering it's only applicable for certain users, and then there's always the question of which display name to use - from the lastReportAction or the report and keeping those in sync we'd probably have to make a decent amount of onyx optimistic updates I'm leaning towards the second solution since that seems to be how we handle these other scenarios where we don't have personal details for a user. Though curious if ya'll agree (@puneetlath / @Beamanator) |
Ah interesting. So we get the personalDetails in the openReport command, but since that hasn't been called yet it can be wrong. I agree with just not showing a display name in the case where we don't have it. |
Thanks for the feedback Let's go with @mkhutornyi's proposal |
@puneetlath one more thing to confirm: when sender name is in the middle, what to show? Maybe something like Screen.Recording.2023-11-01.at.8.00.24.PM.movEDIT:I noticed it's not possible to customize. It's something to be fixed in backend. |
Yeah, we'll need to handle that on the back-end. |
This is ready for payment. @isabelastisser can you please update to |
Payment summary: Issue reported by: @tranvantoan-qn $50 |
Offers sent in Upwork. All set! |
@isabelastisser |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
PRECONDITION: The user has joined a public group chat with a long chat history. For Example:
Expected Result:
The latest sender's name should match between step #4 and #2
Actual Result:
The latest sender's name is different.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.62.0
Reproducible in staging?: y
Reproducible in production?: y
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
Wrong-Latest-Sender.mp4
Expensify/Expensify Issue URL:
Issue reported by: @tranvantoan-qn
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693213921747209
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: