File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -1517,16 +1517,14 @@ export class WAStartupService {
15171517 . split ( / \: / ) [ 0 ]
15181518 . split ( '@' ) [ 0 ] ;
15191519
1520- // Verificação de Grupos Antigos
1521- if ( number . includes ( '-' ) && number . length >= 24 ) {
1520+ if ( number . includes ( '-' ) && number . length >= 24 ) {
15221521 this . logger . verbose ( 'Jid created is group: ' + `${ number } @g.us` ) ;
15231522 number = number . replace ( / [ ^ \d - ] / g, '' ) ;
15241523 return `${ number } @g.us` ;
15251524 }
1526-
1525+
15271526 number = number . replace ( / \D / g, '' ) ;
15281527
1529- // Verificação de Grupos Novos
15301528 if ( number . length >= 18 ) {
15311529 this . logger . verbose ( 'Jid created is group: ' + `${ number } @g.us` ) ;
15321530 number = number . replace ( / [ ^ \d - ] / g, '' ) ;
@@ -2782,13 +2780,13 @@ export class WAStartupService {
27822780 this . logger . verbose ( 'Updating group description: ' + create . description ) ;
27832781 await this . client . groupUpdateDescription ( id , create . description ) ;
27842782 }
2785-
2783+
27862784 if ( create ?. promoteParticipants ) {
27872785 this . logger . verbose ( 'Prometing group participants: ' + create . description ) ;
27882786 await this . updateGParticipant ( {
27892787 groupJid : id ,
2790- action : " promote" ,
2791- participants : participants
2788+ action : ' promote' ,
2789+ participants : participants ,
27922790 } ) ;
27932791 }
27942792
You can’t perform that action at this time.
0 commit comments