Skip to content

Commit

Permalink
🐛 Remove wcV1 uri in LikerId method
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Nov 8, 2023
1 parent 2adac70 commit d423001
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/components/walletconnect-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,20 @@ export const WalletConnectQRCodeDialog: FC<WalletConnectQRCodeDialogProps> = ({
}

case LikeCoinWalletConnectorMethodType.LikerId:
saveMobileLinkInfo({
name: 'Liker Land App',
href: 'com.oice://wcV1',
});
if (isAndroid) {
saveMobileLinkInfo({
name: 'Liker Land App',
href: 'intent://wc#Intent;package=com.oice;scheme=com.oice;end;',
});

return `com.oice://wcV1?${uri}`;
return `intent://wc?${uri}#Intent;package=com.oice;scheme=com.oice;end;`;
} else {
saveMobileLinkInfo({
name: 'Liker Land App',
href: 'com.oice://wc',
});
return `com.oice://wc?${uri}`;
}

default:
return '';
Expand Down

0 comments on commit d423001

Please sign in to comment.