Skip to content

[HOLD] [Help Wanted for completing] [$250] LHN - System message remains on LHN when create new room via announce room #43737

Closed

Description

@lanitochka17

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.83-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
Email or phone of affected tester (no customers): gocemate+a256@gmail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Create Workspace
  2. Go to #announce room
  3. Send a message "#room-1"
  4. Verify that system message "Heads up, room-1 doesn't exist yet. Do you want to create it ?" appears
  5. Click "Yes"
  6. Verify that system message disappears from chat history
  7. Take a look at #announce room in LHN

Expected Result:

System message should be dismissed

Actual Result:

System message "Heads up, room-1 doesn't exist yet. Do you want to create it ?" remains on LHN when create new room via announce room

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6512441_1718312003111.Recording__3211.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0150a19511c968b1de
  • Upwork Job ID: 1803219974130567450
  • Last Price Increase: 2024-06-26
  • Automatic offers:
    • ishpaul777 | Contributor | 102911885
    • dominictb | Contributor | 102941077

Activity

  1. added
    Daily
    Bug
    on Jun 13, 2024
  2. melvin-bot commented on Jun 13, 2024

    @melvin-bot

    Triggered auto assignment to @strepanier03 (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. lanitochka17 commented on Jun 13, 2024

    @lanitochka17
    Author

    @strepanier03 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. Tony-MK commented on Jun 14, 2024

    @Tony-MK
    Contributor

    Proposal

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

    LHN - System message remains on LHN when create new room via announce room

    What is the root cause of that problem?

    The root cause of the problem is that the report lastMessageText is not cleared once the actionable whisper is acted upon.

    const lastMessageTextFromReport = OptionsListUtils.getLastMessageTextForReport(report, lastActorDetails, policy);

    Therefore, the result.alternateText will be the lastMessageText based on the following last else statement line in the SidebarUtils file.

    } else {
    result.alternateText = lastMessageTextFromReport.length > 0 ? lastMessageText : ReportActionsUtils.getLastVisibleMessage(report.reportID, {}, lastAction)?.lastMessageText;
    if (!result.alternateText) {
    result.alternateText = Localize.translate(preferredLocale, 'report.noActivityYet');
    }
    }

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

    We need the clear the lastMessageText for the report from the onyx's optimisticData in the resolveActionableReportMentionWhisper function.

    ....
    {
        onyxMethod: Onyx.METHOD.MERGE,
        key: `${ONYXKEYS.COLLECTION.REPORT}${reportId}`,
        value: {lastMessageText: ''},
    },
    ...
    
  5. melvin-bot commented on Jun 17, 2024

    @melvin-bot

    @strepanier03 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  6. strepanier03 commented on Jun 19, 2024

    @strepanier03
    Contributor

    Confirmed reproducible. Doesn't update on a refresh either.

    image
  7. added
    External
    on Jun 19, 2024
  8. changed the title [-]LHN - System message remains on LHN when create new room via announce room[/-] [+][$250] LHN - System message remains on LHN when create new room via announce room[/+] on Jun 19, 2024
  9. melvin-bot commented on Jun 19, 2024

    @melvin-bot
  10. added
    Help Wanted
    on Jun 19, 2024
  11. melvin-bot commented on Jun 19, 2024

    @melvin-bot

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

  12. 90 remaining items

  13. moved this to Bugs and Follow Up Issues in #expensify-bugson Nov 19, 2024
  14. mvtglobally commented on Dec 7, 2024

    @mvtglobally

    Issue not reproducible during KI retests. (First week)

  15. Julesssss commented on Dec 11, 2024

    @Julesssss
    Contributor

    Not overdue, awaiting further retesting

  16. mvtglobally commented on Dec 30, 2024

    @mvtglobally

    Issue not reproducible during KI retests. (Second week)

  17. Julesssss commented on Jan 15, 2025

    @Julesssss
    Contributor

    Awaiting final retest

  18. mvtglobally commented on Jan 18, 2025

    @mvtglobally

    Issue not reproducible during KI retests. (Third week)

  19. mvtglobally commented on Jan 27, 2025

    @mvtglobally

    Issue not reproducible during KI retests. (Fourth week)

  20. Julesssss commented on Jan 27, 2025

    @Julesssss
    Contributor

    Let's close. thanks Maria!

  21. moved this from Bugs and Follow Up Issues to Done in #expensify-bugson Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugHelp WantedHot PickInternalMonthly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions