Gerar Wuid no SendContact

This commit is contained in:
Alan Mosko
2023-07-24 11:15:58 -03:00
parent 40c230c7db
commit 28c2c7285c
2 changed files with 6 additions and 1 deletions

View File

@@ -2125,6 +2125,11 @@ export class WAStartupService {
result += `URL:${contact.url}\n`;
}
if (!contact.wuid) {
this.logger.verbose('Wuid defined');
contact.wuid = this.createJid(contact.phoneNumber);
}
result +=
`item1.TEL;waid=${contact.wuid}:${contact.phoneNumber}\n` +
'item1.X-ABLabel:Celular\n' +