mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-25 01:48:39 -06:00
Merge branch 'develop' of github.com:EvolutionAPI/evolution-api into develop
This commit is contained in:
commit
a73d5f4b4d
@ -399,7 +399,7 @@ export const contactMessageSchema: JSONSchema7 = {
|
|||||||
email: { type: 'string' },
|
email: { type: 'string' },
|
||||||
url: { type: 'string' },
|
url: { type: 'string' },
|
||||||
},
|
},
|
||||||
required: ['fullName', 'wuid', 'phoneNumber'],
|
required: ['fullName', 'phoneNumber'],
|
||||||
...isNotEmpty('fullName'),
|
...isNotEmpty('fullName'),
|
||||||
},
|
},
|
||||||
minItems: 1,
|
minItems: 1,
|
||||||
|
@ -2277,6 +2277,11 @@ export class WAStartupService {
|
|||||||
result += `URL:${contact.url}\n`;
|
result += `URL:${contact.url}\n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!contact.wuid) {
|
||||||
|
this.logger.verbose('Wuid defined');
|
||||||
|
contact.wuid = this.createJid(contact.phoneNumber);
|
||||||
|
}
|
||||||
|
|
||||||
result +=
|
result +=
|
||||||
`item1.TEL;waid=${contact.wuid}:${contact.phoneNumber}\n` +
|
`item1.TEL;waid=${contact.wuid}:${contact.phoneNumber}\n` +
|
||||||
'item1.X-ABLabel:Celular\n' +
|
'item1.X-ABLabel:Celular\n' +
|
||||||
|
Loading…
Reference in New Issue
Block a user