fix: Fixed problem with fileSha256 appearing when sending a sticker in chatwoot

This commit is contained in:
Davidson Gomes
2023-07-24 11:48:10 -03:00
parent a73d5f4b4d
commit 2f3d6f7e63
4 changed files with 14 additions and 2 deletions

View File

@@ -1335,9 +1335,14 @@ export class WAStartupService {
if (settings?.msg_call.trim().length > 0 && call.status == 'offer') {
this.logger.verbose('Sending message in call');
this.client.sendMessage(call.from, {
const msg = await this.client.sendMessage(call.from, {
text: settings.msg_call,
});
this.client.ev.emit('messages.upsert', {
messages: [msg],
type: 'notify',
});
}
}