added organization name in vcard

This commit is contained in:
Davidson Gomes
2023-07-05 20:05:24 -03:00
parent 964427e533
commit a5e29758a4
3 changed files with 9 additions and 12 deletions

View File

@@ -1425,20 +1425,15 @@ export class WAStartupService {
const message: proto.IMessage = {};
const vcard = (contact: ContactMessage) => {
return (
const result =
'BEGIN:VCARD\n' +
'VERSION:3.0\n' +
'FN:' +
contact.fullName +
'\n' +
'item1.TEL;waid=' +
contact.wuid +
':' +
contact.phoneNumber +
'\n' +
'item1.X-ABLabel:Celular\n' +
'END:VCARD'
);
`FN:${contact.fullName}\n` +
`ORG:${contact.organization};\n` +
`TEL;type=CELL;type=VOICE;waid=${contact.wuid}:${contact.wuid}\n` +
'END:VCARD';
return result;
};
if (data.contactMessage.length === 1) {