File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1434,9 +1434,6 @@ export class WAStartupService {
14341434 let mentions : string [ ] ;
14351435 if ( isJidGroup ( sender ) ) {
14361436 try {
1437- this . logger . verbose ( 'Getting group metadata' ) ;
1438- const groupMetadata = await this . client . groupMetadata ( sender ) ;
1439-
14401437 if ( options ?. mentions ) {
14411438 this . logger . verbose ( 'Mentions defined' ) ;
14421439
@@ -1450,6 +1447,8 @@ export class WAStartupService {
14501447 if ( options . mentions . everyOne ) {
14511448 this . logger . verbose ( 'Mentions everyone' ) ;
14521449
1450+ this . logger . verbose ( 'Getting group metadata' ) ;
1451+ const groupMetadata = await this . client . groupMetadata ( sender ) ;
14531452 mentions = groupMetadata . participants . map ( ( participant ) => participant . id ) ;
14541453 this . logger . verbose ( 'Getting group metadata for mentions' ) ;
14551454 } else {
You can’t perform that action at this time.
0 commit comments