-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[Ignore] Deeplink to Settings View working #20543
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,11 @@ export function handleMetaMaskDeeplink({ | |
}) { | ||
handled(); | ||
|
||
// write it in here. | ||
if (url.startsWith(`${PREFIXES.METAMASK}${ACTIONS.SETTINGS_VIEW}`)) { | ||
SDKConnect.getInstance().state.navigation?.navigate(Routes.SETTINGS_VIEW); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Deeplink Handler Missing ReturnMissing return statement after handling SETTINGS_VIEW deeplink. Without a return, the code will continue executing subsequent if conditions, potentially triggering multiple handlers for the same URL. All other similar deeplink handlers in this function include return statements to prevent this fall-through behavior. |
||
|
||
if (url.startsWith(`${PREFIXES.METAMASK}${ACTIONS.ANDROID_SDK}`)) { | ||
DevLogger.log( | ||
`DeeplinkManager:: metamask launched via android sdk deeplink`, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Missing Prefix for Settings View Action
Missing PREFIXES entry for SETTINGS_VIEW action. All other actions in the ACTIONS enum have corresponding entries in the PREFIXES object (lines 42-62), but SETTINGS_VIEW is missing. This creates an inconsistent pattern and could cause issues if code elsewhere expects all actions to have defined prefixes.