aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-11-11 11:16:01 +0100
committerFlorian Dold <florian@dold.me>2022-11-11 11:16:01 +0100
commit9ec34480768fa9709cbee8d4b70118d31b379795 (patch)
tree8e183db6f5e8e026f8d155582c2c080c4a9f0bcb /packages
parent1fe8967c4387ced59abc9086692c6753a6dab9bd (diff)
remove deprecated taler://notify-reserve URI handling
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-util/src/taleruri.ts4
-rw-r--r--packages/taler-wallet-webextension/src/platform/chrome.ts5
-rw-r--r--packages/taler-wallet-webextension/src/popup/TalerActionFound.tsx16
-rw-r--r--packages/taler-wallet-webextension/src/wallet/AddNewActionView.tsx2
-rw-r--r--packages/taler-wallet-webextension/src/wxBackend.ts7
5 files changed, 0 insertions, 34 deletions
diff --git a/packages/taler-util/src/taleruri.ts b/packages/taler-util/src/taleruri.ts
index fb7175e74..13cdde9a9 100644
--- a/packages/taler-util/src/taleruri.ts
+++ b/packages/taler-util/src/taleruri.ts
@@ -94,7 +94,6 @@ export enum TalerUriType {
TalerWithdraw = "taler-withdraw",
TalerTip = "taler-tip",
TalerRefund = "taler-refund",
- TalerNotifyReserve = "taler-notify-reserve",
TalerPayPush = "taler-pay-push",
TalerPayPull = "taler-pay-pull",
TalerRecovery = "taler-recovery",
@@ -152,9 +151,6 @@ export function classifyTalerUri(s: string): TalerUriType {
if (sl.startsWith(`taler+http://${talerActionPayPull}/`)) {
return TalerUriType.TalerPayPull;
}
- if (sl.startsWith("taler://notify-reserve/")) {
- return TalerUriType.TalerNotifyReserve;
- }
if (sl.startsWith("taler://dev-experiment/")) {
return TalerUriType.TalerDevExperiment;
}
diff --git a/packages/taler-wallet-webextension/src/platform/chrome.ts b/packages/taler-wallet-webextension/src/platform/chrome.ts
index 701d14dfa..288119f98 100644
--- a/packages/taler-wallet-webextension/src/platform/chrome.ts
+++ b/packages/taler-wallet-webextension/src/platform/chrome.ts
@@ -266,11 +266,6 @@ function openWalletURIFromPopup(talerUri: string): void {
`static/wallet.html#/cta/transfer/pickup?talerPayPushUri=${talerUri}`,
);
break;
- case TalerUriType.TalerNotifyReserve:
- logger.warn(
- `Response with HTTP 402 the Taler header but it is deprecated ${talerUri}`,
- );
- break;
case TalerUriType.Unknown:
logger.warn(
`Response with HTTP 402 the Taler header but could not classify ${talerUri}`,
diff --git a/packages/taler-wallet-webextension/src/popup/TalerActionFound.tsx b/packages/taler-wallet-webextension/src/popup/TalerActionFound.tsx
index 3eccad93e..dc2b8bfae 100644
--- a/packages/taler-wallet-webextension/src/popup/TalerActionFound.tsx
+++ b/packages/taler-wallet-webextension/src/popup/TalerActionFound.tsx
@@ -87,22 +87,6 @@ export function TalerActionFound({ url, onDismiss }: Props): VNode {
</Button>
</div>
)}
- {uriType === TalerUriType.TalerNotifyReserve && (
- <div>
- <p>
- <i18n.Translate>
- This page has a notify reserve action.
- </i18n.Translate>
- </p>
- <Button
- variant="contained"
- color="success"
- onClick={redirectToWallet}
- >
- <i18n.Translate>Notify</i18n.Translate>
- </Button>
- </div>
- )}
{uriType === TalerUriType.TalerRefund && (
<div>
<p>
diff --git a/packages/taler-wallet-webextension/src/wallet/AddNewActionView.tsx b/packages/taler-wallet-webextension/src/wallet/AddNewActionView.tsx
index d9cb8aac5..c704c8085 100644
--- a/packages/taler-wallet-webextension/src/wallet/AddNewActionView.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/AddNewActionView.tsx
@@ -64,8 +64,6 @@ export function AddNewActionView({ onCancel }: Props): VNode {
>
{(() => {
switch (uriType) {
- case TalerUriType.TalerNotifyReserve:
- return <i18n.Translate>Open reserve page</i18n.Translate>;
case TalerUriType.TalerPay:
return <i18n.Translate>Open pay page</i18n.Translate>;
case TalerUriType.TalerRefund:
diff --git a/packages/taler-wallet-webextension/src/wxBackend.ts b/packages/taler-wallet-webextension/src/wxBackend.ts
index 7528457c3..28adfa037 100644
--- a/packages/taler-wallet-webextension/src/wxBackend.ts
+++ b/packages/taler-wallet-webextension/src/wxBackend.ts
@@ -296,13 +296,6 @@ function parseTalerUriAndRedirect(tabId: number, talerUri: string): void {
tabId,
`/cta/transfer/recovery?talerBackupUri=${talerUri}`,
);
- case TalerUriType.TalerNotifyReserve:
- // FIXME: Is this still useful?
- // handleNotifyReserve(w);
- logger.warn(
- `Response with HTTP 402 the Taler header but it is deprecated ${talerUri}`,
- );
- break;
case TalerUriType.Unknown:
logger.warn(
`Response with HTTP 402 the Taler header but could not classify ${talerUri}`,