-
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 for payment 2024-06-11] [$250] Group chat - Group chat when left with only group creator shows up in Start chat list #41140
Comments
Triggered auto assignment to @bfitzexpensify ( |
@bfitzexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.Group chat with 1 member shows in What is the root cause of that problem?Even though we don't want to App/src/libs/OptionsListUtils.ts Line 699 in fa29a35
so the option's login is the group owner: App/src/libs/OptionsListUtils.ts Line 735 in fa29a35
and eventually fail this check: App/src/libs/OptionsListUtils.ts Line 1765 in fa29a35
If you tried to press the group chat option (create chat), it would lead to the group chat owner's report and cause What changes do you think we should make in order to solve the problem?Add App/src/libs/OptionsListUtils.ts Line 699 in fa29a35
By this, we would hide the group chat from start chat page even though it has only 1 participant. What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Taxes - Buttons on the top not filing the space evenly What is the root cause of that problem?inside App/src/libs/OptionsListUtils.ts Line 1765 in 7bcb92f
It's not working in our case because a group chat with one user has reportOption.login defined What changes do you think we should make in order to solve the problem?Beside the checks here App/src/libs/OptionsListUtils.ts Lines 1765 to 1767 in 7bcb92f
We need also to add another check const isSingleUserGroupChat = isGroupChat && !hasMultipleParticipants so the code will be if (
!isCurrentUserOwnedPolicyExpenseChatThatCouldShow
&& !includeMultipleParticipantReports
&& !reportOption.login
&& isSingleUserGroupChat ) {
continue;
} |
Job added to Upwork: https://www.upwork.com/jobs/~01fc4346325c33c31c |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Removed member of group chat with remaining one member listed in start chat option list What is the root cause of that problem?In here: App/src/libs/OptionsListUtils.ts Lines 1764 to 1767 in fa29a35
In the comment, the code is intended to filters multiple participant chat, but the code filters expense/policy chat and we don't add proper filter for multiple participant / group chat yet. What changes do you think we should make in order to solve the problem?we could add check below that code to filter multiple participant chat / group chat, the code could be: if (!includeMultipleParticipantReports && ((reportOption.participantsList.length > 1) || ReportUtils.isGroupChat(reportOption))) {
continue;
} Or we could add App/src/libs/OptionsListUtils.ts Line 1532 in fa29a35
then add check properly using |
@gijoe0295 @dragnoir @tsa321 Thanks for your proposal, everyone. Could you check again if your solution works? Because when I apply all of your solutions, the group chat disappears but it shows the "self DM" chat of current login user. Screen.Recording.2024-05-02.at.22.39.42.mov |
@hoangzinh here's a quick draft dragnoir@8fc9ef9 code can be enhanced throw PR, just sharing the idea. |
@hoangzinh the issue is not about self DM
and if you try the production, chat with YOU, then it's on the recent contacts on new chat |
@hoangzinh Could you try to send new messages to several DMs in order to push the self-DM away from the Recents list and retry my solution? I think it might be because the self-DM is still the within recent chat list. I couldn't reproduce the issue on my end. Screen.Recording.2024-05-03.at.00.30.38-source.mov |
@hoangzinh the self DM is also appear in staging and production. Is the expected result to exclude self-DM from recent list? We can filter the self DM if it is expected result... |
Thanks everyone for actively discussing this issue. Somehow I couldn't reproduce the behavior here #41140 (comment) so let's leave it there |
Screen.Recording.2024-05-03.at.22.43.25.mov
|
@gijoe0295 Thanks for your proposal. Your proposal has the correct RCA and it provides a solution that fixes the root cause. Therefore it looks good to me. Link to proposal #41140 (comment) 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @roryabraham, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@hoangzinh the selected proposal will cause regressions like hiding those details App/src/libs/OptionsListUtils.ts Lines 734 to 738 in fa29a35
then you can't search for a user with the email!!! and other regressions |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
This is awaiting input from @roryabraham. |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @gijoe0295 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.78-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-06-11. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
This is ready to pay tomorrow |
BugZero Checklist:
|
Regression Test Proposal
Do we agree 👍 or 👎 |
LGTM. Steps proposed in https://github.com/Expensify/Expensify/issues/403933. Payments complete. Thanks everyone |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.67-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: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The group chat which is now left with only group creator will not show up in Start chat list
Actual Result:
The group chat which is now left with only group creator shows up in Start chat list and it can be added to group. As a result, the confirmation page shows two same admin
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6463603_1714209122767.20240427_170819.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @bfitzexpensifyThe text was updated successfully, but these errors were encountered: