Merge pull request #2275 from alipgoldberg/whatsapp-linked-devices-copy

setup: update WhatsApp link instructions to "You / Settings"
This commit is contained in:
gavrielc
2026-05-05 23:33:32 +03:00
committed by GitHub

View File

@@ -312,7 +312,7 @@ async function renderQr(qr: string): Promise<string[]> {
const QRCode = await import('qrcode'); const QRCode = await import('qrcode');
const qrText = await QRCode.toString(qr, { type: 'terminal', small: true }); const qrText = await QRCode.toString(qr, { type: 'terminal', small: true });
const caption = k.dim( const caption = k.dim(
' Open WhatsApp → Settings → Linked Devices → Link a Device → scan.', ' Open WhatsApp → You / Settings → Linked Devices → Link a Device → scan.',
); );
return [...qrText.trimEnd().split('\n'), '', caption]; return [...qrText.trimEnd().split('\n'), '', caption];
} catch { } catch {
@@ -328,7 +328,7 @@ function formatPairingCard(code: string): string {
'', '',
` ${brandBold(spaced)}`, ` ${brandBold(spaced)}`,
'', '',
k.dim(' Open WhatsApp → Settings → Linked Devices → Link a Device'), k.dim(' Open WhatsApp → You / Settings → Linked Devices → Link a Device'),
k.dim(' → "Link with phone number instead" → enter this code.'), k.dim(' → "Link with phone number instead" → enter this code.'),
k.dim(' It expires in ~60 seconds.'), k.dim(' It expires in ~60 seconds.'),
].join('\n'); ].join('\n');