-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fix bulk expense merge opening self DM instead of transaction thread #89360
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
Merged
MonilBhavsar
merged 18 commits into
Expensify:main
from
marufsharifi:fix/bulk-merge-expense-open-transaction-thread
Jun 4, 2026
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
fdc20ab
Fix bulk expense merge navigation destination
marufsharifi b0890bc
Merge branch 'main' into fix/bulk-merge-expense-open-transaction-thread
marufsharifi 4e25d3e
fixed type and lint error
marufsharifi 487991b
Merge branch 'main' into fix/bulk-merge-expense-open-transaction-thread
marufsharifi 0f9c2b9
Merge branch 'main' into fix/bulk-merge-expense-open-transaction-thread
marufsharifi 7a0b221
Remove redundant merge thread test-only wrapper
marufsharifi 3f15660
Merge branch 'main' into fix/bulk-merge-expense-open-transaction-thread
marufsharifi e51bd4d
Merge branch 'main' into fix/bulk-merge-expense-open-transaction-thread
marufsharifi dac5aa3
Merge branch 'main' into fix/bulk-merge-expense-open-transaction-thread
marufsharifi 9c74eba
fixed type errors.
marufsharifi 1cf76ea
Merge branch 'main' into fix/bulk-merge-expense-open-transaction-thread
marufsharifi 10801e1
Remove stale search thread ID merge fallback
marufsharifi 567dfb6
removed the remaining related test case
marufsharifi a54ff12
Merge branch 'main' into fix/bulk-merge-expense-open-transaction-thread
marufsharifi 829267f
little refactor
marufsharifi 9444506
Merge branch 'main' into fix/bulk-merge-expense-open-transaction-thread
marufsharifi 148f0d4
Fix search origin detection for money request reports
marufsharifi 65270cd
Merge branch 'main' into fix/bulk-merge-expense-open-transaction-thread
marufsharifi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| import ROUTES from '@src/ROUTES'; | ||
| import SCREENS from '@src/SCREENS'; | ||
| import isSearchTopmostFullScreenRoute from './isSearchTopmostFullScreenRoute'; | ||
|
|
||
| function normalizeRoute(route?: string): string | undefined { | ||
| if (!route) { | ||
| return undefined; | ||
| } | ||
|
|
||
| const decodedRoute = (() => { | ||
| try { | ||
| return decodeURIComponent(route); | ||
| } catch { | ||
| return route; | ||
| } | ||
| })(); | ||
|
|
||
| return decodedRoute.startsWith('/') ? decodedRoute.substring(1) : decodedRoute; | ||
| } | ||
|
|
||
| function isSearchOriginForMerge(routeName: string, backTo?: string): boolean { | ||
| if (routeName !== SCREENS.RIGHT_MODAL.SEARCH_REPORT && routeName !== SCREENS.RIGHT_MODAL.SEARCH_MONEY_REQUEST_REPORT) { | ||
| return false; | ||
| } | ||
|
|
||
| const normalizedBackTo = normalizeRoute(backTo); | ||
| if (normalizedBackTo) { | ||
| return normalizedBackTo.startsWith(ROUTES.SEARCH_ROOT.route); | ||
| } | ||
|
|
||
| return isSearchTopmostFullScreenRoute(); | ||
| } | ||
|
|
||
| export default isSearchOriginForMerge; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.