Skip to content

Commit 98063a4

Browse files
authored
Update whatsapp.baileys.service.ts
1 parent 744a637 commit 98063a4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ export class BaileysStartupService extends ChannelStartupService {
461461
this.logger.info(
462462
`
463463
┌──────────────────────────────┐
464-
CONNECTED TO WHATSAPP
464+
CONNECTADO NA EVOLUTION!
465465
└──────────────────────────────┘`.replace(/^ +/gm, ' '),
466466
);
467467
this.logger.info(
@@ -1127,7 +1127,7 @@ export class BaileysStartupService extends ChannelStartupService {
11271127
}
11281128

11291129
if (text == 'onDemandHistSync') {
1130-
const messageId = await this.client.fetchMessageHistory(50, received.key, received.messageTimestamp!);
1130+
const messageId = await this.client.fetchMessageHistory(5, received.key, received.messageTimestamp!);
11311131
console.log('requested on-demand sync, id=', messageId);
11321132
}
11331133
}
@@ -2044,7 +2044,7 @@ export class BaileysStartupService extends ChannelStartupService {
20442044
}
20452045
}
20462046

2047-
if (message['conversation']) {
2047+
if (message['conversation'] && message['conversation'].trim() !== '') {
20482048
return await this.client.sendMessage(
20492049
sender,
20502050
{

0 commit comments

Comments
 (0)