Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jrCleber committed Oct 16, 2024
2 parents 6461288 + f6c69f3 commit f06a6b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/whatsapp/services/whatsapp.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,10 @@ export class WAStartupService {
5: 'PLAYED',
};
for await (const { key, update } of args) {
if (update.status === 4 && key?.remoteJid) {
key.remoteJid = key.remoteJid.replace(/:\d+(?=@)/, '');
}

if (key.remoteJid !== 'status@broadcast' && !key?.remoteJid?.match(/(:\d+)/)) {
const message = {
...key,
Expand Down

0 comments on commit f06a6b2

Please sign in to comment.