fix: connection state

This commit is contained in:
Davidson Gomes
2023-07-24 18:28:01 -03:00
parent f7293255cf
commit f9abd90cc9
4 changed files with 13 additions and 9 deletions

View File

@@ -1517,7 +1517,7 @@ export class WAStartupService {
.split(/\:/)[0]
.split('@')[0];
if (number.includes('-') && number.length >= 24) {
if (number.length >= 18) {
this.logger.verbose('Jid created is group: ' + `${number}@g.us`);
number = number.replace(/[^\d-]/g, '');
return `${number}@g.us`;