File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1891,9 +1891,9 @@ export class WAStartupService {
18911891 let mentions : string [ ] ;
18921892 if ( isJidGroup ( sender ) ) {
18931893 try {
1894- const groupMetadata = await this . client . groupMetadata ( sender ) ;
1894+ const group = await this . findGroup ( { groupJid : sender } , 'inner' ) ;
18951895
1896- if ( ! groupMetadata ) {
1896+ if ( ! group ) {
18971897 throw new NotFoundException ( 'Group not found' ) ;
18981898 }
18991899
@@ -1904,7 +1904,7 @@ export class WAStartupService {
19041904 this . logger . verbose ( 'Mentions everyone' ) ;
19051905
19061906 this . logger . verbose ( 'Getting group metadata' ) ;
1907- mentions = groupMetadata . participants . map ( ( participant ) => participant . id ) ;
1907+ mentions = group . participants . map ( ( participant ) => participant . id ) ;
19081908 this . logger . verbose ( 'Getting group metadata for mentions' ) ;
19091909 } else if ( options . mentions ?. mentioned ?. length ) {
19101910 this . logger . verbose ( 'Mentions manually defined' ) ;
You can’t perform that action at this time.
0 commit comments