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
[Due for payment 2025-08-26] [$250] Chat - iOS - Double tapping on a contact opens the chat twice #67917
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.1.89-1 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Issue reported by: Applause - Internal Team
Action Performed:
Open the app
Log in with a new Gmail account
Finish onboarding with the "Track" option
Navigate to FAB - Start chat
Input the email address of an existing Gmail account
Double tap on the account under "Contacts"
Tap on the "<" button
Expected Result:
The chat should be opened once
Actual Result:
Double tapping on a contact opens the chat twice. Navigating back will result in an endless skeleton loader
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Android: App
Android: mWeb Chrome
iOS: App
iOS: mWeb Safari
iOS: mWeb Chrome
Windows: Chrome
MacOS: Chrome / Safari
MacOS: Desktop
Platforms Tested:
On which of our officially supported platforms was this issue tested:
Android: App
Android: mWeb Chrome
iOS: App
iOS: mWeb Safari
iOS: mWeb Chrome
Windows: Chrome
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidenceBug6908297_1754393482705.DGTF5307.1.mp4
Please re-state the problem that we are trying to solve in this issue.
Chat - iOS - Double tapping on a contact opens the chat twice
What is the root cause of that problem?
This happens because we use a listener for the keyboard, and when the keyboard is open, it is possible to call the Keyboard.dismiss() function twice, which will add two listeners, and when the keyboard is hidden, two calls to the function will occur. When the keyboard is closed, the bug does not reproduce.
What changes do you think we should make in order to solve the problem?
To fix this bug, we need to add a flag that will indicate that the function has already been called:
constisHandlingPress=useRef(false);/** * If there are selected options already then it will toggle the option otherwise * creates a new 1:1 chat with the option and the current user, * or navigates to the existing chat if one with those participants already exists. */constselectOption=useCallback((option?: Option)=>{if(option?.isSelfDM){if(!option.reportID){Navigation.dismissModal();return;}Navigation.dismissModalWithReport({reportID: option.reportID});return;}if(selectedOptions.length&&option){// Prevent excluded emails from being added to groupsif(option?.login&&excludedGroupEmails.includes(option.login)){return;}toggleOption(option);return;}letlogin='';if(option?.login){login=option.login;}elseif(selectedOptions.length===1){login=selectedOptions.at(0)?.login??'';}if(!login){Log.warn('Tried to create chat with empty login');return;}if(isHandlingPress.current)return;isHandlingPress.current=true;KeyboardUtils.dismiss().then(()=>{navigateToAndOpenReport([login]);isHandlingPress.current=false;});},[selectedOptions,toggleOption],);
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
What alternative solutions did you explore? (Optional)
We can replace KeyboardUtils.dismiss() with simply Keyboard.dismiss() and possibly call the function with a certain delay, but we will need to check if there are any drawbacks to this approach.
We can wrap the function in a throttle with a large value (for example, 5 seconds), in which case the function will be called only once. Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
changed the title [-]Chat - iOS - Double tapping on a contact opens the chat twice[/-][+][$250] Chat - iOS - Double tapping on a contact opens the chat twice[/+]on Aug 12, 2025
changed the title [-][$250] Chat - iOS - Double tapping on a contact opens the chat twice[/-][+][Due for payment 2025-08-26] [$250] Chat - iOS - Double tapping on a contact opens the chat twice[/+]on Aug 19, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.96-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@ishpaul777@zanyrenney The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: not introduced by a specific PR, edge case bug never considered
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: rare edge case not CRITICAL, no need
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again. rare edge case not CRITICAL, no need
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Aug 5, 2025
Triggered auto assignment to @zanyrenney (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.Eskalifer1 commentedon Aug 5, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Chat - iOS - Double tapping on a contact opens the chat twice
What is the root cause of that problem?
This happens because we use a listener for the keyboard, and when the keyboard is open, it is possible to call the Keyboard.dismiss() function twice, which will add two listeners, and when the keyboard is hidden, two calls to the function will occur. When the keyboard is closed, the bug does not reproduce.
What changes do you think we should make in order to solve the problem?
To fix this bug, we need to add a flag that will indicate that the function has already been called:
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
What alternative solutions did you explore? (Optional)
We can replace KeyboardUtils.dismiss() with simply Keyboard.dismiss() and possibly call the function with a certain delay, but we will need to check if there are any drawbacks to this approach.
We can wrap the function in a throttle with a large value (for example, 5 seconds), in which case the function will be called only once.
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
melvin-bot commentedon Aug 8, 2025
@zanyrenney Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
[-]Chat - iOS - Double tapping on a contact opens the chat twice[/-][+][$250] Chat - iOS - Double tapping on a contact opens the chat twice[/+]melvin-bot commentedon Aug 12, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021955224670854960116
melvin-bot commentedon Aug 12, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ishpaul777 (
External)zanyrenney commentedon Aug 12, 2025
Hey @ishpaul777 please can you review the proposal above?
23 remaining items
[-][$250] Chat - iOS - Double tapping on a contact opens the chat twice[/-][+][Due for payment 2025-08-26] [$250] Chat - iOS - Double tapping on a contact opens the chat twice[/+]melvin-bot commentedon Aug 19, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Aug 19, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.96-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2025-08-26. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Aug 19, 2025
@ishpaul777 @zanyrenney The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
zanyrenney commentedon Aug 26, 2025
Hey @ishpaul777 please complete the checklist so that we can proceed with the payout.
zanyrenney commentedon Aug 26, 2025
I have sent a message via DM to @ishpaul777
melvin-bot commentedon Aug 26, 2025
Payment Summary
Upwork Job
BugZero Checklist (@zanyrenney)
ishpaul777 commentedon Aug 27, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: not introduced by a specific PR, edge case bug never considered
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: rare edge case not CRITICAL, no need
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again. rare edge case not CRITICAL, no need
zanyrenney commentedon Aug 27, 2025
Payment summary
ROLE: @Eskalifer1 paid $(AMOUNT) via Upwork (LINK) - paid $250 via upwork
Reviewer: @ishpaul777 owed $250 via NewDot - please request on ND
trjExpensify commentedon Sep 29, 2025
approved $250 for @ishpaul777