Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased (develop)

- fixed: Using deprecated wallets to handle links

## 4.20.0 (staging)

- added: 'numAccounts' to 'Signup_Complete' event
Expand Down
5 changes: 5 additions & 0 deletions src/actions/DeepLinkingActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { FundAccountModal } from '../components/modals/FundAccountModal'
import { pickWallet } from '../components/modals/WalletListModal'
import { Airship, showError, showToast, showToastSpinner } from '../components/services/AirshipInstance'
import { guiPlugins } from '../constants/plugins/GuiPlugins'
import { SPECIAL_CURRENCY_INFO } from '../constants/WalletAndCurrencyConstants'
import { lstrings } from '../locales/strings'
import { executePlugin, fiatProviderDeeplinkHandler } from '../plugins/gui/fiatPlugin'
import { config } from '../theme/appConfig'
Expand Down Expand Up @@ -226,6 +227,10 @@ async function handleLink(navigation: NavigationBase, dispatch: Dispatch, state:
const parseWallets = async (): Promise<void> => {
// Try to parse with all wallets
for (const wallet of Object.values(currencyWallets)) {
// Ignore disabled wallets:
const { keysOnlyMode = false } = SPECIAL_CURRENCY_INFO
if (keysOnlyMode) return

const { pluginId } = wallet.currencyInfo
const parsedUri = await wallet.parseUri(link.uri).catch(e => undefined)
if (parsedUri != null) {
Expand Down
3 changes: 2 additions & 1 deletion src/util/DeepLinkParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export function parseDeepLink(uri: string, opts: { aztecoApiKey?: string } = {})
}
}

// Assume anything else is a coin link of some kind:
// Assume anything else is a coin link of some kind (with the exception of
// deprecated currencies):
const protocol = url.protocol.replace(/:$/, '')
return { type: 'other', protocol, uri }
}
Expand Down
Loading