taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit df3dcd2f7b47d94ed2c2fd2b9e81024f26e8c5ec
parent 3e21c80180f9eb2ad6b4070db6354d46a7f19dfb
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Tue, 14 Jul 2026 18:45:57 +0200

mailbox/taldir: Update webextension with new code

Diffstat:
Mpackages/taler-wallet-webextension/src/wallet/Mailbox.tsx | 13+++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/packages/taler-wallet-webextension/src/wallet/Mailbox.tsx b/packages/taler-wallet-webextension/src/wallet/Mailbox.tsx @@ -84,10 +84,13 @@ export function MailboxPage({ const state = useAsyncAsHook(async () => { const b = await api.wallet.call(WalletApiOperation.GetMailboxMessages, {}); - activeMailbox = await api.wallet.call( + const getMailboxResponse = await api.wallet.call( WalletApiOperation.GetMailbox, - mailboxBaseUrl, + { + mailboxBaseUrl: mailboxBaseUrl, + } ); + activeMailbox = getMailboxResponse.mailboxConfiguration; var mailboxUrl; if (activeMailbox) { @@ -134,7 +137,9 @@ export function MailboxPage({ try { await api.wallet.call( WalletApiOperation.InitializeMailbox, - mailboxBaseUrl, + { + mailboxBaseUrl: mailboxBaseUrl + }, ); // FIXME the returned mailbox may have a payto URI set // In that case we need to display the option to pay AND @@ -384,7 +389,7 @@ export function MessagesView({ /> )} <Grid item container columns={1} spacing={1} style={{ marginTop: 20 }}> - {messages.map((m, i) => ( + {messages.map((m, _) => ( <Grid item xs={1}> <MailboxMessageLayout message={m}