diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index 22839fd451..882fb06ab9 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -2638,10 +2638,10 @@ export class BaileysStartupService extends ChannelStartupService { } } - const linkPreview = options?.linkPreview === false ? false : undefined; + const linkPreview = options?.linkPreview === true ? true : false; let previewContext: any = undefined; - if (linkPreview !== false && (message as any)?.conversation) { + if (linkPreview === true && (message as any)?.conversation) { previewContext = await this.generateLinkPreview((message as any).conversation); }