Skip to content
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

[$250] Group chat - After removing user, group name is not updated #49491

Open
3 of 6 tasks
IuliiaHerets opened this issue Sep 19, 2024 · 14 comments
Open
3 of 6 tasks

[$250] Group chat - After removing user, group name is not updated #49491

IuliiaHerets opened this issue Sep 19, 2024 · 14 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 19, 2024

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: 9.0.38-0
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: Applause Internal Team

Action Performed:

  1. Launch app
  2. Tap fab -- start chat
  3. Select a user with a custom name eg: jaihanumanblog@gmail.com
    and tap add to group
  4. Open the group name and note user name shown
  5. Select the user and now note the group name updated without user name
  6. Tap back
  7. Select a user with a custom name eg: jaihanumanblog@gmail.com
    and tap add to group
  8. Tal start group
  9. Tap header
  10. Tap the group name and note user name shown
  11. Remove the user
  12. Tap group name and note group name not updated without user name and just a swipe down shows character limit error

Expected Result:

After removing user, group name must be updated.

Actual Result:

After removing user, group name is not updated.

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6608614_1726735802186.Screenrecorder-2024-09-19-14-10-17-185_compress_1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021836866126068088205
  • Upwork Job ID: 1836866126068088205
  • Last Price Increase: 2024-09-19
  • Automatic offers:
    • c3024 | Reviewer | 104061081
    • FitseTLT | Contributor | 104061083
Issue OwnerCurrent Issue Owner: @bondydaa
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 19, 2024
Copy link

melvin-bot bot commented Sep 19, 2024

Triggered auto assignment to @twisterdotcom (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@IuliiaHerets
Copy link
Author

@twisterdotcom 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

@bondydaa bondydaa self-assigned this Sep 19, 2024
@bondydaa bondydaa added the External Added to denote the issue can be worked on by a contributor label Sep 19, 2024
@melvin-bot melvin-bot bot changed the title Group chat - After removing user, group name is not updated [$250] Group chat - After removing user, group name is not updated Sep 19, 2024
Copy link

melvin-bot bot commented Sep 19, 2024

Job added to Upwork: https://www.upwork.com/jobs/~021836866126068088205

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 19, 2024
Copy link

melvin-bot bot commented Sep 19, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 (External)

@abzokhattab
Copy link
Contributor

abzokhattab commented Sep 19, 2024

what should happen if the user changed the group name to something else before removing a user?

@FitseTLT
Copy link
Contributor

FitseTLT commented Sep 19, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Group chat - After removing user, group name is not updated

What is the root cause of that problem?

We are not removing pending delete participants when we construct a default (when there is no custom group name) group name here

let participantAccountIDs = participants?.map((participant) => participant.accountID) ?? Object.keys(report?.participants ?? {}).map(Number);

What changes do you think we should make in order to solve the problem?

We should filter out participants with pending delete from report.participants

    let participantAccountIDs =
        participants?.map((participant) => participant.accountID) ??
        Object.keys(report?.participants ?? {})
            .map(Number)
            .filter((accountID) => {
                const pendingMember = report?.pendingChatMembers?.find((member) => member.accountID === accountID.toString());
                return !(pendingMember && pendingMember.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE);
            });

What alternative solutions did you explore? (Optional)

@c3024
Copy link
Contributor

c3024 commented Sep 20, 2024

@FitseTLT 's proposal here LGTM!

🎀 👀 🎀 C+ Reviewed

@c3024
Copy link
Contributor

c3024 commented Sep 20, 2024

🎀 👀 🎀 C+ Reviewed

Copy link

melvin-bot bot commented Sep 20, 2024

Current assignee @bondydaa is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 20, 2024
Copy link

melvin-bot bot commented Sep 20, 2024

📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Sep 20, 2024

📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added the Overdue label Sep 23, 2024
@twisterdotcom
Copy link
Contributor

Let us know how you're getting on @FitseTLT!

Copy link

melvin-bot bot commented Sep 23, 2024

@bondydaa, @twisterdotcom, @FitseTLT, @c3024 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@FitseTLT
Copy link
Contributor

PR created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants