-
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
[HOLD App Navigation Reboot #11768] [$1000] Web - Double click on message on user details page opens group with that user if group chat with that user is the latest chat #16557
Comments
Triggered auto assignment to @slafortune ( |
Bug0 Triage Checklist (Main S/O)
|
Looks good! |
Job added to Upwork: https://www.upwork.com/jobs/~011c35869503b85073 |
Current assignee @slafortune is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Triggered auto assignment to @bondydaa ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.App opens wrong chat when double-click on 'message user' from user details page opened from group chat What is the root cause of that problem?This issue is caused by double calling Line 191 in 55d6098
What changes do you think we should make in order to solve the problem?We could disable menu item after pressing here: Lines 188 to 194 in 55d6098
like so: <MenuItem
title={`${this.props.translate('common.message')}${details.displayName}`}
icon={Expensicons.ChatBubble}
onPress={() => { this.setState({messageButtonDisabled:true}); Report.navigateToAndOpenReport([details.login])}}
wrapperStyle={styles.breakAll}
shouldShowRightIcon
disabled={this.state.messageButtonDisabled}
/> To do so we also need to add state to the DetailsPage component and it's better to write a function for onPress |
ProposalPlease re-state the problem that we are trying to solve in this issue.App reopens the group chat (i.e. group chat which is current latest chat for user) when double clicking on 'Message username' in the group member profile. What is the root cause of that problem?The root cause is in this line where it triggered twice when double clicking on the What changes do you think we should make in order to solve the problem?We should apply the same fix as for the To elaborate the fix: We should update the
More specifically, add the following code to replace this line.
This line App/src/components/MenuItem.js Line 88 in a9534b8
disabled={props.disabled || isDisabled}
What alternative solutions did you explore?
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Double click on message on user details page opens group with that user if group chat with that user is the latest chat What is the root cause of that problem?the second click on "message USER" cancel navigation and returns back to prev screen. What changes do you think we should make in order to solve the problem?we can change the call on press in What alternative solutions did you explore? (Optional) |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
ProposalPlease re-state the problem that we are trying to solve in this issue.When we double click on a profile name the screen stays the same instead of going to the chat of the user What is the root cause of that problem?We use a custom action for navigation from a drawer. In this method The first time we click, it pushes the new route to the stack. On the second click it sees that we are on the same screen so it doesn't push the new route and return here
The problem is that before we return we pop everything from the stack so we return to the screen before the first click here:
What changes do you think we should make in order to solve the problem?We can do the check if we are on the same screen before popping the stack. That way if we are on the same screen we don't pop the stack and stay on the same screen. Since changing DeprecatedCustomActions is not an option we can put the check before calling pushDrawerRoute What alternative solutions did you explore? (Optional) |
Can someone clarify why modifying DeprecatedCustomActions.js should not be accepted ? It looks like it is there that there is a problem |
@ShogunFire as far as I know it's due to upcoming navigation system rebuild |
Thanks @alexxxwork for the feedback, in my proposal I'm not touching the |
@tienifr sorry, missed it. So you are making the changes global? I don't think it's a universal approach to disable MenuItem after pressing it. How do you propose to turn it back when there's no promise in result? |
Instead there better be a prop to the component similar to shouldDelayFocus - |
@alexxxwork it was the same way we're doing with the |
Then I think we should hold this issue until the new navigation system rebuild |
I couldn't repro this issue. Is there anything else that I should be doing? |
@slafortune, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick! |
It's on hold! |
@slafortune, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Same #16557 (comment) |
Changing to weekly 👍 |
Still on hold for #11768 |
Still on hold |
Still on hold |
still on hold |
Testing this since #11768 has been closed - seems to operate as expected now. Double-clicking open chat for the person selected only. |
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:
Expected Result:
App should open user chat as it does on normal click and normal double click on 'Message username' while navigating the user details from that user report or while the latest chat is not a group with that user
Actual Result:
App reopens the group chat (i.e. group chat which is current latest chat for user)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.90.4
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Recording.2383.mp4
double.click.issue.group.chat.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1679823965622129
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: