From 1ffaec663de356b38ab902b2f66757d6b59d2434 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 22 Jan 2026 23:55:59 +0000 Subject: [PATCH] fix(types): remove duplicate enableCTWARecovery declaration in SocketConfig The property was declared twice in SocketConfig type: - Line 134 as required boolean - Line 211 as optional boolean This caused TypeScript compilation errors: - TS2300: Duplicate identifier - TS2687: Mismatched modifiers - TS2717: Type mismatch between required and optional Removed the duplicate declaration, keeping the first one which is already properly documented and has the correct type. --- src/Types/Socket.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/Types/Socket.ts b/src/Types/Socket.ts index 36161e4d..5b0d460c 100644 --- a/src/Types/Socket.ts +++ b/src/Types/Socket.ts @@ -192,24 +192,6 @@ export type SocketConfig = { /** Circuit breaker configuration for message operations */ messageCircuitBreaker?: Partial - // === CTWA (Click-to-WhatsApp) Ads Recovery === - - /** - * Enable automatic recovery of CTWA (Click-to-WhatsApp) ads messages. - * - * Messages from Facebook/Instagram ads don't arrive on linked devices because - * Meta's ads endpoint doesn't encrypt messages for multi-device architecture. - * They arrive as "Message absent from node" placeholders. - * - * When enabled, the library will automatically request the original message - * from the primary phone via PDO (Peer Data Operation) when a CTWA placeholder - * is detected. - * - * @default true - * @see https://github.com/WhiskeySockets/Baileys/issues/1723 - */ - enableCTWARecovery?: boolean - // === Listener Limits (Memory Leak Prevention) === /**