From acd901db175dd5eecde53be2768635da435ff162 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 20 Aug 2026 13:59:23 -0700 Subject: [PATCH] Fix schema for link device for e164-less registration --- ts/textsecure/WebAPI.preload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/textsecure/WebAPI.preload.ts b/ts/textsecure/WebAPI.preload.ts index 25d6f9a216..eaf3ca5040 100644 --- a/ts/textsecure/WebAPI.preload.ts +++ b/ts/textsecure/WebAPI.preload.ts @@ -1099,7 +1099,7 @@ export type CreateAccountOptionsType = Readonly<{ const linkDeviceResultZod = z.object({ uuid: aciSchema, - pni: untaggedPniSchema.optional(), + pni: untaggedPniSchema.nullish(), deviceId: z.number(), }); export type LinkDeviceResultType = z.infer;