We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1536952 commit 37397c7Copy full SHA for 37397c7
src/whatsapp/services/whatsapp.service.ts
@@ -1425,15 +1425,15 @@ export class WAStartupService {
1425
const message: proto.IMessage = {};
1426
1427
const vcard = (contact: ContactMessage) => {
1428
- const result =
+ return (
1429
'BEGIN:VCARD\n' +
1430
'VERSION:3.0\n' +
1431
`FN:${contact.fullName}\n` +
1432
`ORG:${contact.organization};\n` +
1433
- `TEL;type=CELL;type=VOICE;waid=${contact.wuid}:${contact.wuid}\n` +
1434
- 'END:VCARD';
1435
-
1436
- return result;
+ `item1.TEL;waid=${contact.wuid}:${contact.phoneNumber}\n` +
+ 'item1.X-ABLabel:Celular\n' +
+ 'END:VCARD'
+ );
1437
};
1438
1439
if (data.contactMessage.length === 1) {
0 commit comments