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
[$1000] Money request is shown from the other account instead of current user. #22862
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
The IOU is shown to be from the user we are chatting with.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.40-5 Reproducible in staging?: y Reproducible in production?: n If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
I think that's how it's supposed be rendered, the preview clearly says who owes money to who. I can see how it can be confusing though – let's see of someone who's more familiar with this can chime in.
Anyway, even if it were a bug, the same also happens on production, so I'm going to remove the deploy blocker label for now.
changed the title [-]Money request is shown from the other account instead of current user.[/-][+][$1000] Money request is shown from the other account instead of current user.[/+]on Jul 26, 2023
Please re-state the problem that we are trying to solve in this issue.
The problem is that the chat initiator's avatar and name are not displayed in the chat. If you look at my video here - #22862 (comment), chat is sent from T5 to T6. However, the chat is attributed to be sent by T6 even though it was initiated by T5. This is the problem we are trying to solve.
What is the root cause of that problem?
The root cause of this issue is at this line where we are building an optimistic report preview. Here, the actorAccountID is set with report's managerID which could be payer/payee depending on the context.
What changes do you think we should make in order to solve the problem?
Setting actorAccountID with currentUserAccountID would ensure that the chat initiator's details will be set to the current user who initiated it.
The change has to be made at this line here like this:
actorAccountID: currentUserAccountID,
Further, when API with command RequestMoney is sent, the BE should ensure that reportAction with actionName: REPORTPREVIEW has the actorAccountID set to the first time initiator's account id. I think, subsequent RequestMoney requests from either actors (T5 or T6) shouldn't update the actorAccountID. wdyt?
What alternative solutions did you explore? (Optional)
@robertjchen@michaelhaxhiu@Santhosh-Sellavel this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
Thansk for your input @Santhosh-Sellavel. I spent time to look into this a little further and have changed my stance, we do this intentionally. Closing this GH.
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Activity
melvin-bot commentedon Jul 14, 2023
Triggered auto assignment to @michaelhaxhiu (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 14, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)OSBotify commentedon Jul 14, 2023
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
StagingDeployCashdeploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:melvin-bot commentedon Jul 14, 2023
Triggered auto assignment to @robertjchen (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.francoisl commentedon Jul 14, 2023
Is this actually a bug? The same behavior is happening on production for me. Besides, it says " owes",
showing that the money request was sent to them
jeet-dhandha commentedon Jul 14, 2023
The message should have gone from the requester's account instead of the payer's account.
francoisl commentedon Jul 14, 2023
I think that's how it's supposed be rendered, the preview clearly says who owes money to who. I can see how it can be confusing though – let's see of someone who's more familiar with this can chime in.
Anyway, even if it were a bug, the same also happens on production, so I'm going to remove the deploy blocker label for now.
21 remaining items
[-]Money request is shown from the other account instead of current user.[/-][+][$1000] Money request is shown from the other account instead of current user.[/+]melvin-bot commentedon Jul 26, 2023
Job added to Upwork: https://www.upwork.com/jobs/~019b2ea0a8e06090db
melvin-bot commentedon Jul 26, 2023
Current assignee @michaelhaxhiu is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jul 26, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (
External)rojiphil commentedon Jul 27, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The problem is that the chat initiator's avatar and name are not displayed in the chat. If you look at my video here - #22862 (comment), chat is sent from T5 to T6. However, the chat is attributed to be sent by T6 even though it was initiated by T5. This is the problem we are trying to solve.
What is the root cause of that problem?
The root cause of this issue is at this line where we are building an optimistic report preview. Here, the
actorAccountIDis set with report'smanagerIDwhich could be payer/payee depending on the context.What changes do you think we should make in order to solve the problem?
Setting
actorAccountIDwithcurrentUserAccountIDwould ensure that the chat initiator's details will be set to the current user who initiated it.The change has to be made at this line here like this:
actorAccountID: currentUserAccountID,Further, when API with command
RequestMoneyis sent, the BE should ensure that reportAction withactionName: REPORTPREVIEWhas theactorAccountIDset to the first time initiator's account id. I think, subsequentRequestMoneyrequests from either actors (T5 or T6) shouldn't update theactorAccountID. wdyt?What alternative solutions did you explore? (Optional)
melvin-bot commentedon Jul 28, 2023
@robertjchen @michaelhaxhiu @Santhosh-Sellavel this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
Santhosh-Sellavel commentedon Jul 28, 2023
This looks like expected behavior to me @michaelhaxhiu please check with the product & design team.
michaelhaxhiu commentedon Jul 31, 2023
Thansk for your input @Santhosh-Sellavel. I spent time to look into this a little further and have changed my stance, we do this intentionally. Closing this GH.