Skip to content

[HOLD for payment 2022-12-15] [$1000] My own message is prefixed with my name/email at LHN (only for room chats) reported by @thesahindia  #12706

Closed

Description

@kavimuru

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


Action Performed:

  1. Create a new workspace
  2. Search announce room
  3. Send a message
  4. Observe the LHN message preview

Expected result:

Name/email shouldn't prefixed for your own message like group chats

Actual result:

My own message is prefixed with name/email

Workaround:

unknown

Platform:

Where is this issue occurring?

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

Version Number: 1.2.27-3
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Screen.Recording.2022-11-13.at.11.51.55.PM.mov

Screenshot (99)

**Expensify/Expensify Issue URL:** **Issue reported by:** @thesahindia **Slack conversation:** https://expensify.slack.com/archives/C049HHMV9SM/p1668369685379099 [View all open jobs on GitHub](https://github.com/Expensify/App/issues?q=is%3Aopen+is%3Aissue+label%3A%22Help+Wanted%22)

Upwork Automation - Do Not Edit

Activity

  1. added
    Daily
    Bug
    on Nov 14, 2022
  2. melvin-bot commented on Nov 14, 2022

    @melvin-bot

    Triggered auto assignment to @muttmuure (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. daraksha-dk commented on Nov 14, 2022

    @daraksha-dk
    Contributor

    Proposal
    The lastMessageText logic needs improvement

    let lastMessageText = hasMultipleParticipants && lastActorDetails
    ? `${lastActorDetails.displayName}: `
    : '';

    Only use displayName as prefix when the current user doesn't match with the last actor
    Using hasMultipleParticipants && lastActorDetails && (lastActorDetails.login !== currentUserLogin.email) will solve this

    Another solution is to remove current user like this

     const participantsWithoutCurrentUser = _.filter(report.participants, email => email !== currentUserLogin.email);
     const personalDetailMap = OptionsListUtils.getPersonalDetailsForLogins(participantsWithoutCurrentUser, personalDetails);
    

    const personalDetailMap = OptionsListUtils.getPersonalDetailsForLogins(report.participants, personalDetails);

  4. JmillsExpensify commented on Nov 16, 2022

    @JmillsExpensify
  5. thesahindia commented on Nov 16, 2022

    @thesahindia
    Member

    C/P my comment from slack here-

    I did some research and I am sure this is a bug. We are getting lastActorDetails from personalDetailMap ( which is accessing report.participants ) if the lastActorDetails is available we prefix the last message with email at LHN if it's not available we will only see the message (without email as prefix) This logic works correctly for group chats because report.participants doesn't contain the current user's details that's why our own message doesn't get prefixed with the email. We are seeing this issue for rooms because for rooms we include the current user's details in report.participants
    Code:-

    let lastMessageText = hasMultipleParticipants && lastActorDetails

    if (ReportUtils.isChatRoom(reportNameValuePairs)) {

  6. JmillsExpensify commented on Nov 16, 2022

    @JmillsExpensify
    Contributor

    Thanks, for the clarifications! Yes, I agree with you. This is in fact a bug. Marking my earlier comment as outdated.

  7. melvin-bot commented on Nov 18, 2022

    @melvin-bot

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

  8. JmillsExpensify commented on Nov 18, 2022

    @JmillsExpensify
    Contributor

    @muttmuure Let's get this one going!

  9. melvin-bot commented on Nov 22, 2022

    @melvin-bot

    @muttmuure Still overdue 6 days?! Let's take care of this!

  10. muttmuure commented on Nov 22, 2022

    @muttmuure
    Contributor

    On it, sorry!

  11. muttmuure commented on Nov 22, 2022

    @muttmuure
    Contributor

    I can reproduce - I'm not sure why this is a problem but I follow the logic of the posters above

    image

  12. 60 remaining items

  13. muttmuure commented on Dec 21, 2022

    @muttmuure
    Contributor
  14. muttmuure commented on Dec 21, 2022

    @muttmuure
    Contributor
  15. aimane-chnaif commented on Dec 21, 2022

    @aimane-chnaif
    Contributor

    @muttmuure applied

  16. thesahindia commented on Dec 21, 2022

    @thesahindia
    Member

    Applied, thanks!

  17. mananjadhav commented on Dec 22, 2022

    @mananjadhav
    Collaborator

    @muttmuure Quick bump on this one. This is due for payout

  18. muttmuure commented on Dec 23, 2022

    @muttmuure
    Contributor

    @daraksha-dk @mananjadhav have been paid

    @aimane-chnaif @thesahindia have been hired

  19. daraksha-dk commented on Dec 24, 2022

    @daraksha-dk
    Contributor

    @muttmuure - I didn't get the 50% bonus (the PR was merged within 3 days)

  20. daraksha-dk commented on Dec 29, 2022

    @daraksha-dk
    Contributor

    @mallenexpensify - Can you please check this, I think @muttmuure might be OOO

  21. mallenexpensify commented on Dec 29, 2022

    @mallenexpensify
    Contributor

    Wow, a rare 4 hires for a job. I'm gonna help sort this out. I appears that
    @daraksha-dk compensation should be $1500 w/ bonus. Already paid $1000, I bonused $500 today - DONE
    @thesahindia compensation should be $250 - Paid today - DONE
    @aimane-chnaif already paid $1000
    @mananjadhav already paid $750

    For timeliness bonus

    FWIW @muttmuure , I'd recommend documenting the amounts due before paying and provide reasoning for any not-normal issues like this. The confusing bit is C+ compensation. What I think is fair is
    @mananjadhav $250 for proposal review - no bonus cuz bonuses are for timeliness of PR review and merge timeliness
    @aimane-chnaif $1250 - $750 for PR review (since Manan got $250 for proposal review) and $500 for bonus.

    @mananjadhav and @aimane-chnaif do you agree? If so I'll update the payments to both of you.

  22. mananjadhav commented on Dec 30, 2022

    @mananjadhav
    Collaborator

    @mallenexpensify I think one way would be to make it 500 and 500 for the proposal review and PR review. The whole bonus goes to @aimane-chnaif.

    But I am fine with anything.

  23. mallenexpensify commented on Dec 30, 2022

    @mallenexpensify
    Contributor

    I was basing the 25/75 split off your comment

    I think we should split this is 75/25. 75% to @aimane-chnaif because PR review requires more effort.

  24. mananjadhav commented on Dec 30, 2022

    @mananjadhav
    Collaborator

    Sorry got confused with the issues(using phone). Yes for this issue correct. Because there weren’t many proposals to review. So no heavy lifting on that side.

    You’re right. 25/75 is good here (but can’t be a standard, as there might be cases where proposal review can take days through multiple conversations).

    again sorry for the confusion

  25. mallenexpensify commented on Dec 30, 2022

    @mallenexpensify
    Contributor

    Thanks @mananjadhav . I agree the 25/75 is not a standard.
    I requested $500 refund from you @mananjadhav (so total paid will be $250)
    I bonused @aimane-chnaif another $250, total paid is now $1250.

    And... closing!

  26. mananjadhav commented on Dec 31, 2022

    @mananjadhav
    Collaborator

    Thanks @mallenexpensify. Processed the refund from my side.

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineeringExternalReviewing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions