From e01f94e345bd94afe1643b55434a00c106d18954 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 6 Dec 2019 03:23:35 +0100 Subject: pending fixes --- src/wallet-impl/reserves.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/wallet-impl/reserves.ts') diff --git a/src/wallet-impl/reserves.ts b/src/wallet-impl/reserves.ts index 8a700bebc..8b8fbc7e3 100644 --- a/src/wallet-impl/reserves.ts +++ b/src/wallet-impl/reserves.ts @@ -174,6 +174,8 @@ export async function createReserve( }, ); + ws.notify({ type: NotificationType.ReserveCreated }); + // Asynchronously process the reserve, but return // to the caller already. processReserve(ws, resp.reservePub, true).catch(e => { @@ -244,6 +246,7 @@ async function registerReserveWithBank( r.retryInfo = initRetryInfo(); return r; }); + ws.notify( { type: NotificationType.Wildcard }); return processReserveBankStatus(ws, reservePub); } @@ -284,6 +287,8 @@ async function processReserveBankStatusImpl( throw e; } + ws.notify( { type: NotificationType.Wildcard }); + if (status.selection_done) { if (reserve.reserveStatus === ReserveRecordStatus.REGISTERING_BANK) { await registerReserveWithBank(ws, reservePub); @@ -322,6 +327,7 @@ async function processReserveBankStatusImpl( return r; }); } + ws.notify( { type: NotificationType.Wildcard }); } async function incrementReserveRetry( -- cgit v1.2.3