commit bd44affc75befed89360b6df1f1e6c751b2c9969
parent d65f5bc92e961ecfb22d2f4e7e8dc9a6dcbc8fc3
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Tue, 27 Oct 2026 11:52:50 +0100
taldir/mailbox/alias: fix migrations for db 25 and new API return objects
Diffstat:
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/packages/taler-wallet-core/src/db/sqlite/schema.ts b/packages/taler-wallet-core/src/db/sqlite/schema.ts
@@ -356,8 +356,6 @@ CREATE TABLE IF NOT EXISTS contacts (
mailbox_address TEXT NOT NULL,
source TEXT NOT NULL,
petname TEXT NOT NULL,
- self INTEGER DEFAULT 0,
- expiration INTEGER DEFAULT 0,
PRIMARY KEY (alias, alias_type)
);
@@ -367,7 +365,6 @@ CREATE TABLE IF NOT EXISTS mailbox_messages (
-- The record type carries a protocol Timestamp ({ t_s }); the mapper
-- converts, as it does for every other time in this schema.
downloaded_at INTEGER NOT NULL,
- subject_hint TEXT NOT NULL,
PRIMARY KEY (origin_mailbox_base_url, taler_uri)
);
diff --git a/packages/taler-wallet-core/src/taldir.ts b/packages/taler-wallet-core/src/taldir.ts
@@ -158,7 +158,7 @@ async function internalLookupAlias(
);
const hAlias = encodeCrock(sha512(hAliasBuffer));
const res = await runWithProgressRetries(wex, async () =>
- await taldirClient.lookupAlias({ hAlias: hAlias }),
+ await taldirClient.lookupAlias({ hAlias: hAlias }),
);
switch (res.case) {
case "ok":
@@ -273,14 +273,16 @@ async function internalCompleteAliasRegistration(
);
const hAlias = encodeCrock(sha512(hAliasBuffer));
const res = await runWithProgressRetries(wex, async () =>
- await taldirClient.postRegistration({
+ await taldirClient.postRegistration({
hAlias: hAlias,
solution: solution,
}),
);
switch (res.case) {
case "ok":
- return res.body;
+ return {
+ valid_for: res.body?.valid_for,
+ };
case HttpStatusCode.NotFound:
case HttpStatusCode.Forbidden:
case HttpStatusCode.TooManyRequests: