Skip to content

[HOLD for payment 2021-12-27] Display individual and group chats with draft message and no previous message in LHN #6619

Closed

Description

@MonilBhavsar

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Coming from this issue

Action Performed:

  1. Start a fresh chat from New chat or New Group Chat from + menu
  2. Draft a message
  3. Leave the chat / switch the chat

Expected Result:

  1. That chat should appear in LHN with draft icon

Actual Result:

  1. Chat doesn't appear in LHN, but has draft saved

Workaround:

Start a new chat by clicking +

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number:
Reproducible in staging?: Yes
Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @parasharrajat
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1638800736247800

View all open jobs on GitHub

Activity

  1. added
    Weekly
    Improvement
    External
    on Dec 7, 2021
  2. MelvinBot commented on Dec 7, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @Christinadobrzyn (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  3. added
    Daily
    and removed
    Weekly
    on Dec 7, 2021
  4. MonilBhavsar commented on Dec 7, 2021

    @MonilBhavsar
    ContributorAuthor

    As discussed here, we would also remove the chat from LHN if user deletes the draft message

  5. parasharrajat commented on Dec 7, 2021

    @parasharrajat
    Member

    @MonilBhavsar Should I be assigned as reported by for this as I pointed this in #6490 (comment) ?

  6. Christinadobrzyn commented on Dec 9, 2021

    @Christinadobrzyn
    Contributor

    Hum, I might be missing something but I can't replicate this. @parasharrajat @MonilBhavsar - can you check?

    This is what I did:

    • Start a fresh chat from New chat or New Group Chat from + menu
    • Draft a message
    • Leave the chat / switch the chat
    • The drafted chat is sticking to the new group

    2021-12-09_09-30-42 (1)

  7. MonilBhavsar commented on Dec 9, 2021

    @MonilBhavsar
    ContributorAuthor

    @Christinadobrzyn, can you please confirm which version you're running on?

  8. parasharrajat commented on Dec 9, 2021

    @parasharrajat
    Member

    @Christinadobrzyn @MonilBhavsar. This works in focus mode it does not in Normal mode.

  9. parasharrajat commented on Dec 9, 2021

    @parasharrajat
    Member

    Proposal

    To fix this

    function getSidebarOptions(
    reports,
    personalDetails,
    activeReportID,
    priorityMode,
    betas,
    ) {
    let sideBarOptions = {
    prioritizePinnedReports: true,
    prioritizeIOUDebts: true,
    prioritizeReportsWithDraftComments: true,
    };
    if (priorityMode === CONST.PRIORITY_MODE.GSD) {
    sideBarOptions = {
    hideReadReports: true,
    sortByAlphaAsc: true,
    showReportsWithDrafts: true,
    };
    }
    return getOptions(reports, personalDetails, activeReportID, {
    betas,
    includeRecentReports: true,
    includeMultipleParticipantReports: true,
    maxRecentReportsToShow: 0, // Unlimited
    sortByLastMessageTimestamp: true,
    showChatPreviewLine: true,
    ...sideBarOptions,
    });
    }

    We need to set the showReportsWithDrafts: true for both modes. Which is setting this true in getOptions call.

  10. 4 remaining items

  11. added
    Help Wanted
    on Dec 10, 2021
  12. MelvinBot commented on Dec 10, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @roryabraham (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

  13. Christinadobrzyn commented on Dec 10, 2021

    @Christinadobrzyn
    Contributor
  14. defi-bear commented on Dec 10, 2021

    @defi-bear

    Is this issue still open for proposal? I found one proposal above and not sure if it's accepted or not.

  15. roryabraham commented on Dec 10, 2021

    @roryabraham
    Contributor

    Sorry for the delay @Shing-Ho – I think @parasharrajat's proposal will work, so we'll hire him for this job. @Christinadobrzyn feel free to hire @parasharrajat on Upwork. Since he's already assigned to this issue (as the only C+), I'm just going to remove the Help Wanted label.

  16. removed
    Help Wanted
    on Dec 10, 2021
  17. Christinadobrzyn commented on Dec 13, 2021

    @Christinadobrzyn
    Contributor

    Hired @parasharrajat in Upwork 🎉

  18. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Dec 20, 2021
  19. botify commented on Dec 20, 2021

    @botify

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.21-1 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 2021-12-27. 🎊

  20. changed the title [-]Display individual and group chats with draft message and no previous message in LHN[/-] [+][HOLD for payment 2021-12-27] Display individual and group chats with draft message and no previous message in LHN[/+] on Dec 20, 2021
  21. laurenreidexpensify commented on Dec 28, 2021

    @laurenreidexpensify
    Contributor

    @parasharrajat paid - $500 (solution + reporting bonus)

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

Metadata

Metadata

Labels

Awaiting PaymentEngineeringExternalImprovementWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions