Skip to content

Commit 9a9cd41

Browse files
authored
wip
1 parent 0c4c816 commit 9a9cd41

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/whatsapp/services/whatsapp.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)