We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd82aa1 commit ffe1523Copy full SHA for ffe1523
1 file changed
src/whatsapp/services/whatsapp.service.ts
@@ -2156,7 +2156,7 @@ export class WAStartupService {
2156
2157
const onWhatsapp: OnWhatsAppDto[] = [];
2158
for await (const number of data.numbers) {
2159
- const jid = this.createJid(number);
+ let jid = this.createJid(number);
2160
2161
if (isJidGroup(jid)) {
2162
const group = await this.findGroup({ groupJid: jid }, 'inner');
@@ -2165,6 +2165,7 @@ export class WAStartupService {
2165
2166
onWhatsapp.push(new OnWhatsAppDto(group.id, !!group?.id, group?.subject));
2167
} else {
2168
+ jid = (!jid.startsWith('+')) ? `+${jid}` : jid;
2169
const verify = await this.client.onWhatsApp(jid);
2170
2171
const result = verify[0];
0 commit comments