App: [Regression test steps needed] [$1000] Request/Send money available in default-rooms/chatrooms with 2 members, error if used.

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. FAB -> Create workspace.
  2. Settings -> Workspaces -> Manage members. Ensure it has exactly two members.
  3. Open #admin or #announce room, click + and notice that Request/Send money options are available.
  4. Select Request money -> Enter any amount -> Select Next -> Select Request

Expected Result:

Request/Send money options should not be available in default rooms.

Actual Result:

Request/Send money options are available, using them results in error.

Workaround:

unknown

Platform:

Where is this issue occurring?

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

Version Number: Reproducible in staging?: Reproducible in production?: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Expensify/Expensify Issue URL: Issue reported by: @Ollyws

https://user-images.githubusercontent.com/43996225/204150217-930deb03-ea11-4367-ad68-cb8639156ad1.mp4

https://user-images.githubusercontent.com/43996225/204150233-e2ec94b6-b1ea-4e38-9dfc-967da11ab9a0.mp4

1

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1669560477526229

View all open jobs on GitHub

Upwork Automation - Do Not Edit

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 41 (28 by maintainers)

Most upvoted comments

In a default room or user created policy room it does not make sense to show the send/request money options as those can only happen in a DM or policy expense chat (though the policy expense chats are still behind a beta IIRC so not sure it’s really relevant to this conversation).

It seems like we still want to allow splitting a bill (though less sure how valuable that is cc @trjExpensify) - kind of a tangent though.

I think for this issue the main thing is that we shouldn’t be seeing the request/send options in default rooms with 2 members and the solution is to wrap the place where we push those options in with a check to ReportUtils.isChatRoom().

@Ollyws first solution is in the right spot - but not sure if they realized how it would affect the bill split feature (which again, isn’t entirely clear that we would necessarily want that behavior).

unassigning me as @thesahindia was assigned for PR review!

Yeah, it has come up a few times. Like here, and we don’t need to restrict people from using Split bill in rooms.

@trjExpensify if a default room or user created room only has 2 members then are we still showing “Split Bill” to them?

Wrt to showing Spilt bill in a room with only 2 members. I think that’s fine and better than the added complexity of switching Request money for Split bill as the room member list grows, given that it’s an edge case that you would create a room and only add one other person in the first place.

@s77rt According to the thread linked here: https://github.com/Expensify/App/issues/13069#issuecomment-1328316315 request/send money shouldn’t be available in chatrooms atall, only add attachment and split bill should be shown. ‘2 members’ was only mentioned because that’s when the request/send money options were shown.