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.
This commit is contained in:
@@ -192,24 +192,6 @@ export type SocketConfig = {
|
|||||||
/** Circuit breaker configuration for message operations */
|
/** Circuit breaker configuration for message operations */
|
||||||
messageCircuitBreaker?: Partial<CircuitBreakerOptions>
|
messageCircuitBreaker?: Partial<CircuitBreakerOptions>
|
||||||
|
|
||||||
// === 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) ===
|
// === Listener Limits (Memory Leak Prevention) ===
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user