Merge pull request #375 from judsonjuniorr/poll-sending

Fix polls in message sending
This commit is contained in:
Davidson Gomes 2024-01-22 13:44:49 -03:00 committed by GitHub
commit 7f74de07ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2469,7 +2469,7 @@ export class WAStartupService {
);
}
if (!message['audio'] && sender != 'status@broadcast') {
if (!message['audio'] && !message['poll'] && sender != 'status@broadcast') {
this.logger.verbose('Sending message');
return await this.client.sendMessage(
sender,