fix: quoted messages

This commit is contained in:
Davidson Gomes 2024-04-12 15:53:06 -03:00
parent ef4a9ab66b
commit 794213b5c6

View File

@ -1772,13 +1772,11 @@ export class BaileysStartupService extends WAStartupService {
const msg = m?.message ? m : ((await this.getMessage(m.key, true)) as proto.IWebMessageInfo); const msg = m?.message ? m : ((await this.getMessage(m.key, true)) as proto.IWebMessageInfo);
if (!msg) { if (msg) {
throw 'Message not found';
}
quoted = msg; quoted = msg;
this.logger.verbose('Quoted message'); this.logger.verbose('Quoted message');
} }
}
let mentions: string[]; let mentions: string[];
if (isJidGroup(sender)) { if (isJidGroup(sender)) {