commit bbcfc2cbb5ae9105b6376bfd601cfd68adb4f7f3
parent 220dcfc39737aa22d79e397392e3cca0fdd7d8f3
Author: Florian Dold <florian@dold.me>
Date: Wed, 8 Nov 2023 16:57:48 +0100
wallet-core: do not consider peer pull tx as pending when in dialog state
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/packages/taler-wallet-core/src/operations/pending.ts b/packages/taler-wallet-core/src/operations/pending.ts
@@ -580,10 +580,10 @@ async function gatherPeerPullDebitPending(
const timestampDue =
timestampOptionalAbsoluteFromDb(retryRecord?.retryInfo.nextRetry) ??
AbsoluteTime.now();
- // switch (pi.status) {
- // case PeerPullDebitRecordStatus.DialogProposed:
- // return;
- // }
+ switch (pi.status) {
+ case PeerPullDebitRecordStatus.DialogProposed:
+ return;
+ }
resp.pendingOperations.push({
type: PendingTaskType.PeerPullDebit,
...getPendingCommon(ws, opId, timestampDue),