-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Awaiting Payment 29th May] Threads - There is no Leave thread option on group Chat threads #39660
Comments
Triggered auto assignment to @trjExpensify ( |
We think this issue might be related to the #vip-vsb. |
ProposalPlease re-state the problem that we are trying to solve in this issue.No thread leave option in group chat threads. What is the root cause of that problem?It's because here !isGroupChat will be false, and that's why we don't see the 'Leave Thread' option. App/src/pages/home/HeaderView.tsx Line 147 in 32b6c38
What changes do you think we should make in order to solve the problem?We can handle this by adding a condition where when isGroupChat and is isChatThread both are true then we can show the Leave option. something like this
What alternative solutions did you explore? (Optional)When creating threads from a group chat, we should not set chatType as group. This will ensure that the threads are not considered as group chats. |
ProposalPlease re-state the problem that we are trying to solve in this issue.not able to leave/join group threads What is the root cause of that problem?Currently we have disabled the option for leaving/joining threads for group chats: App/src/pages/home/HeaderView.tsx Line 147 in 32b6c38
What changes do you think we should make in order to solve the problem?We should remove const canJoinOrLeave = !isSelfDM && (isChatThread || isUserCreatedPolicyRoom || canLeaveRoom); What alternative solutions did you explore? (Optional)
App/src/pages/home/HeaderView.tsx Lines 148 to 149 in 32b6c38
|
ProposalPlease re-state the problem that we are trying to solve in this issue.There is no Leave thread option. What is the root cause of that problem?We don't allow leave or join for group chat by this check here and the App/src/pages/home/HeaderView.tsx Line 145 in f95bf85
And I also see that the Lines 4884 to 4889 in f95bf85
What changes do you think we should make in order to solve the problem?
App/src/pages/home/HeaderView.tsx Line 145 in f95bf85
Lines 4884 to 4889 in f95bf85
and for the thread of this, join/leave option will appear by App/src/pages/home/HeaderView.tsx Line 145 in f95bf85
What alternative solutions did you explore? (Optional)If we allow the user to leave the group chat, we can simply remove App/src/pages/home/HeaderView.tsx Line 145 in f95bf85
And add the check
App/src/pages/home/HeaderView.tsx Line 146 in f95bf85
|
Moving this forward, and putting it in #vip-split as a groups bug. CC: @marcaaron @JmillsExpensify if you want to track it somewhere or it's already known as part of the Groups project rollout. |
@trjExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
Ah whoops, needs an external label innit! @jjcoffee proposals here for you to review. Thanks! :) |
Tough decision here 😄 @Nodebrute's proposal does work, but I feel that it makes the code a bit unreadable (in an already pretty hard to parse set of conditions). I think removing the 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Isn't that basically the same thing except the new code will not check for
I don't understand what you mean here, can you clarify? Is the only change the one above? |
@iwiznia Yeah we should bring all checks for
Yes, I mean after we move the check
|
Why would you not be able to leave a group chat? 😕 |
@iwiznia I see that the expected in the description of issue is we only want to have leave thread option in the thread of group chat. Is that wrong? |
Where are you seeing that? I think it is wrong, yes. |
@iwiznia I follow the expected of this issue. |
Yes, that is correct, it is saying you should be able to leave a thread, it is NOT saying you should not be able to leave a group. |
This issue has not been updated in over 15 days. @trjExpensify, @jjcoffee, @marcaaron, @nkdengineer eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
PR was merged earlier today, Melv. |
@trjExpensify what is left to be done here? |
The PR hit production 2 days ago, so we'll now wait 5 more days for any regressions. Then we'll pay it out and close. :) |
Regression Test Proposal
Do we agree 👍 or 👎 |
Just a heads up that this issue was created before the default payment changed to $250 (on April 5) so the bounty should be $500. |
LGTM @jjcoffee |
Thanks for the steps! Why can't you leave a group in step #3 though? I thought anyone could leave those now. 🤔 If that's accurate, my suggested edit would be:
|
@trjExpensify Ah yeah you are right that you can leave groups but it's not via the three-dot menu. You have to tap the header and then the modal has the leave option: We could add an extra step to tap the header and verify that the leave option is there? It'd be good to keep the step verifying that the leave option isn't in the three-dot menu though. |
Hm, so actually.. we're in the process of updating all of these in a project called "Details revamp" in implementation. So there won't be a overflow menu in any of the headers, the buttons will reside on the So I'm going to hold off on this regression test, and the project when wrapped will add/update them all centrally. |
Payment summary as follows:
Offers sent! |
@trjExpensify Thanks, offer accepted! |
Joel, paid! |
@trjExpensify Thank you, I accepted the offer |
Perfect, paid. Closing! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v1.4.60-1
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): dave0123seife+hl5@gmail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
There should be a leave thread option after creating a thread.
Actual Result:
There is no Leave thread option.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6437737_1712221240801.Issue_NO_leave_Option.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: