1 parent
59be4a780f
commit
1a4513f437
1 file changed
+2
-2
@@ -951,8 +951,8 @@ export class WhatsappSessionGoWSCore extends WhatsappSession {
|
||||
const data = response.toObject();
|
||||
const info = data.infos[0];
|
||||
return {
|
||||
numberExists: info.registered,
|
||||
chatId: toCusFormat(info.jid),
|
||||
numberExists: info?.registered || false,
|
||||
chatId: toCusFormat(info?.jid || null),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user