-
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
[HOLD][$500] Chat - Latest chat user is not showing in recent on Start chat screen #31397
Comments
Job added to Upwork: https://www.upwork.com/jobs/~019fd53c186025d25b |
Triggered auto assignment to @muttmuure ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Latest user chats are not visible under chat suggestions What is the root cause of that problem?The App/src/libs/OptionsListUtils.js Lines 1228 to 1231 in 1ca499c
For example, this is a
What changes do you think we should make in order to solve the problem?Need to change the above condition to check for
This happened to one of my accounts and making this change fixed the issue for me. ResultRPReplay_Final1700077600.5.MOVWhat alternative solutions did you explore? (Optional) |
Updated proposal to include a screen recording |
Updated proposal to make small adjustments to the wording. |
Updated proposal to add an example of the bug. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Some users are missing from the "Recents" section when starting a chat. What is the root cause of that problem?When building the options list, we filter out the reports where the option has missing App/src/libs/OptionsListUtils.js Lines 1228 to 1231 in 629c6de
Some users from 1:1 chats have missing login data, so these options are filtered out here as well, even though they are 1:1 chats, not multiple ones. What changes do you think we should make in order to solve the problem?First, we should change this condition to check for both if (!isCurrentUserOwnedPolicyExpenseChatThatCouldShow && !includeMultipleParticipantReports && !reportOption.accountID && !reportOption.login) {
continue;
} Second, if we change only this condition, the options will appear in the list, but they will navigate to incorrect reports because we use the following logic when clicking on the option: Lines 158 to 166 in 1f3eca3
Therefore, we should change this logic to the following: function createChat(option) {
if (!option.login) {
Report.navigateToAndOpenReportWithAccountIDs([option.accountID]);
}
Report.navigateToAndOpenReport([option.login]);
} What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - Latest chat user is not showing in recent on Start chat screen What is the root cause of that problem?When A starts a new chat with B (The account B doesn't already exist), the login field in personal detail will be null. Only when account B is created and replies to a new message to account A, personal details in account A will be updated. It makes account B isn't displayed on the Start chat Page because this logic App/src/libs/OptionsListUtils.js Line 1229 in 629c6de
What changes do you think we should make in order to solve the problem?App/src/libs/OptionsListUtils.js Line 1229 in 629c6de
Here we should update to use accountID field instead of login field because in the multiple participant chat accountID always be '0' When doing that, we accept to display options that don't have a login field on Start Chat Page. So that we also update some logics in Start Chat Page Line 119 in ff4c947
In this function we should use accountID instead of login field to check condition IN here Line 165 in ff4c947
we should check to use Lines 161 to 171 in ff4c947
One more place Line 173 in ff4c947
We should check if login is null/underfined we can use option.text or using accountIDs instead of What alternative solutions did you explore? (Optional) |
@allroundexperts, @muttmuure Eep! 4 days overdue now. Issues have feelings too... |
@DylanDylann's proposal looks good to me. @paultsimura I think you missed the case when a group is to be created. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @amyevans, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @allroundexperts Please request via NewDot manual requests for the Reviewer role ($500) |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Just a heads up I'll be OOO the remainder of the week, if a PR is ready before then, I'll review it next Monday or Tuesday. Thanks! |
@amyevans @allroundexperts As expected in OP, when A starts a new chat with B (The account B doesn't already exist), we will display the user B on the Start Chat Page. Do you want do the same thing in the other page (that don't include multipe participant chat) like RoomInvitePage, WorkSpaceInvitePage, TaskAssigneeSelectorModal, MoneyRequestParticipantsSelector |
![]() One more thing, we will display "Hidden" as display name as decision here |
Hmm, to be honest I'm not sure of expected behavior on this one, and also given that I know the logic that goes into which users are "known" is complex, so wondering if these questions have already been discussed or if @puneetlath has an opinion here on expected behavior. |
@puneetlath Could you help to check above comment: #31397 (comment) ? |
@amyevans @allroundexperts @muttmuure @DylanDylann this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@amyevans, @allroundexperts, @muttmuure, @DylanDylann Huh... This is 4 days overdue. Who can take care of this? |
Coming back to this, I think that because There's been some internal discussion though to consider accountA as knowing accountB if accountA invited accountB (https://github.com/Expensify/Expensify/issues/342920), so let's wait until that's implemented and then we can move forward here. |
https://github.com/Expensify/Expensify/issues/342920 is closed so I retested and can no longer repro: Screen.Recording.2023-12-15.at.10.02.52.AM.movI think we can close this but feel free to reopen if you disagree @muttmuure |
@amyevans @muttmuure Should we process payment for this issue? Since this issue has already been assigned to contributors and we spent lots of effort on this issue to propose a solution and create a draft PR. This is some similar issues that the compensation is paid out without PR: #27108 (comment) #28844 (comment) |
@amyevans @muttmuure Could you help to check the above comment? |
Yeah I think that sounds fair enough |
@DylanDylann I've sent you an offer on Upwork |
$500 - @allroundexperts for C+ |
@muttmuure Thanks, I accepted |
$500 payment approved for @allroundexperts based on this comment. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.3.99-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
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
Action Performed:
Expected Result:
Latest chat should appear on the top of suggestion list
Actual Result:
Latest chat with user is not showing in recent on Start chat screen
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6277920_1700069001676.JLFA3209.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: