You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[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
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review
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
**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)
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
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:-
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
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.
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).
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.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review
Activity
melvin-bot commentedon Nov 14, 2022
Triggered auto assignment to @muttmuure (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.daraksha-dk commentedon Nov 14, 2022
Proposal
The
lastMessageTextlogic needs improvementApp/src/libs/SidebarUtils.js
Lines 250 to 252 in e09d228
Only use
displayNameas prefix when the current user doesn't match with the last actorUsing
hasMultipleParticipants && lastActorDetails && (lastActorDetails.login !== currentUserLogin.email)will solve thisAnother solution is to remove current user like this
App/src/libs/SidebarUtils.js
Line 215 in 6209f01
JmillsExpensify commentedon Nov 16, 2022
thesahindia commentedon Nov 16, 2022
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:-
App/src/libs/SidebarUtils.js
Line 250 in 6456bec
App/src/libs/actions/Report.js
Line 69 in 6456bec
JmillsExpensify commentedon Nov 16, 2022
Thanks, for the clarifications! Yes, I agree with you. This is in fact a bug. Marking my earlier comment as outdated.
melvin-bot commentedon Nov 18, 2022
@muttmuure Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
JmillsExpensify commentedon Nov 18, 2022
@muttmuure Let's get this one going!
melvin-bot commentedon Nov 22, 2022
@muttmuure Still overdue 6 days?! Let's take care of this!
muttmuure commentedon Nov 22, 2022
On it, sorry!
muttmuure commentedon Nov 22, 2022
I can reproduce - I'm not sure why this is a problem but I follow the logic of the posters above
60 remaining items
muttmuure commentedon Dec 21, 2022
Suggested adding a regression step here https://expensify.slack.com/archives/C01SKUP7QR0/p1671621870001619
muttmuure commentedon Dec 21, 2022
@daraksha-dk @mananjadhav have been hired
@aimane-chnaif @thesahindia need to apply here https://www.upwork.com/jobs/~01e003307772c7b0fe
aimane-chnaif commentedon Dec 21, 2022
@muttmuure applied
thesahindia commentedon Dec 21, 2022
Applied, thanks!
mananjadhav commentedon Dec 22, 2022
@muttmuure Quick bump on this one. This is due for payout
muttmuure commentedon Dec 23, 2022
@daraksha-dk @mananjadhav have been paid
@aimane-chnaif @thesahindia have been hired
daraksha-dk commentedon Dec 24, 2022
@muttmuure - I didn't get the 50% bonus (the PR was merged within 3 days)
daraksha-dk commentedon Dec 29, 2022
@mallenexpensify - Can you please check this, I think @muttmuure might be OOO
mallenexpensify commentedon Dec 29, 2022
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.
mananjadhav commentedon Dec 30, 2022
@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.
mallenexpensify commentedon Dec 30, 2022
I was basing the 25/75 split off your comment
mananjadhav commentedon Dec 30, 2022
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
mallenexpensify commentedon Dec 30, 2022
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!
mananjadhav commentedon Dec 31, 2022
Thanks @mallenexpensify. Processed the refund from my side.