Skip to content

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

Closed

Description

@IuliiaHerets

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

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Sep 19, 2024
  2. melvin-bot commented on Sep 19, 2024

    @melvin-bot

    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.

  3. IuliiaHerets commented on Sep 19, 2024

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

  4. self-assigned this
    on Sep 19, 2024
  5. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Sep 19, 2024
  6. changed the title [-]Group chat - After removing user, group name is not updated[/-] [+][$250] Group chat - After removing user, group name is not updated[/+] on Sep 19, 2024
  7. melvin-bot commented on Sep 19, 2024

    @melvin-bot
  8. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Sep 19, 2024
  9. melvin-bot commented on Sep 19, 2024

    @melvin-bot

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

  10. abzokhattab commented on Sep 19, 2024

    @abzokhattab
    Contributor

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

  11. FitseTLT commented on Sep 19, 2024

    @FitseTLT
    Contributor

    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)

  12. c3024 commented on Sep 20, 2024

    @c3024
    Contributor

    @FitseTLT 's proposal here LGTM!

    🎀 👀 🎀 C+ Reviewed

  13. 6 remaining items

  14. twisterdotcom commented on Sep 23, 2024

    @twisterdotcom
    Contributor

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

  15. melvin-bot commented on Sep 23, 2024

    @melvin-bot

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

  16. FitseTLT commented on Sep 23, 2024

    @FitseTLT
    Contributor

    PR created

  17. bondydaa commented on Oct 15, 2024

    @bondydaa
    Contributor

    hmm automation failed looks like this was deployed 2 weeks ago #49618 (comment)

  18. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed
    ReviewingHas a PR in review
    on Oct 15, 2024
  19. c3024 commented on Oct 15, 2024

    @c3024
    Contributor

    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:

    Regression Test Proposal

    1. FAB > Start chat
    2. Select a few members and create a group chat
    3. Go to the group chat report
    4. Click on the group chat header
    5. Press on "Members" in the right hand panel
    6. Select a member and remove them from the group
    7. Verify that the group chat name does not contain name/login of the removed user in Step 6
  20. c3024 commented on Oct 15, 2024

    @c3024
    Contributor

    @twisterdotcom

    Can you please handle the payment here? Thanks!

  21. twisterdotcom commented on Oct 15, 2024

    @twisterdotcom
    Contributor

    Payment Summary:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions