[core] GOWS - do not fail in case of wrong numbers

fix #1173
This commit is contained in:
devlikepro committed 2025-09-29 09:09:37 +07:00
1 parent 59be4a780f
commit 1a4513f437
1 file changed
+2 -2
+2 -2
View File
@@ -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),
};
}