From 849d570bcb9d3bc102c715c69a3ae75e05d5bf05 Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Tue, 13 Jun 2023 14:08:26 -0300 Subject: [PATCH] fixed docker files and quoted message option --- src/validate/validate.schema.ts | 1 + src/whatsapp/services/whatsapp.service.ts | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/validate/validate.schema.ts b/src/validate/validate.schema.ts index b4680c3d..408fa32e 100644 --- a/src/validate/validate.schema.ts +++ b/src/validate/validate.schema.ts @@ -81,6 +81,7 @@ const quotedOptionsSchema: JSONSchema7 = { required: ['id', 'remoteJid', 'fromMe'], ...isNotEmpty('id', 'remoteJid'), }, + message: { type: 'object' }, }, }; diff --git a/src/whatsapp/services/whatsapp.service.ts b/src/whatsapp/services/whatsapp.service.ts index 16644523..4c900a43 100644 --- a/src/whatsapp/services/whatsapp.service.ts +++ b/src/whatsapp/services/whatsapp.service.ts @@ -983,12 +983,7 @@ export class WAStartupService { const messageSent = await (async () => { const option = { - quoted: { - key: quoted.key, - message: { - conversation: 'message', - }, - }, + quoted, }; if (!message['audio'] && !message['poll'] && !message['linkPreview']) {