Skip to content

Commit d32aebf

Browse files
committed
dependency update: @whiskeysockets/baileys 6.7.21 to 7.0.0-rc.8
1 parent cb98717 commit d32aebf

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@adiwajshing/keyed-db": "^0.2.4",
4747
"@hapi/boom": "^10.0.1",
4848
"@prisma/client": "^6.19.0",
49-
"@whiskeysockets/baileys": "^6.7.21",
49+
"@whiskeysockets/baileys": "7.0.0-rc.8",
5050
"axios": "^1.13.2",
5151
"class-validator": "^0.14.0",
5252
"cross-env": "^10.0.0",

src/utils/extract-id.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,9 @@ const extractUser = (...values: (string | undefined)[]) => {
2727
};
2828

2929
export const getJidUser = (key: WAMessageKey) => {
30-
return extractUser(key?.remoteJid, key?.senderPn, key?.senderLid);
30+
return extractUser(key?.remoteJid, key?.remoteJid, key?.remoteJidAlt);
3131
};
3232

3333
export const getUserGroup = (key: WAMessageKey, participant?: string) => {
34-
return extractUser(
35-
key?.participant,
36-
key?.participantLid,
37-
key?.participantPn,
38-
participant,
39-
);
34+
return extractUser(key?.participant, key?.participantAlt, participant);
4035
};

src/whatsapp/services/whatsapp.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ export class WAStartupService {
864864
} as PrismType.Message);
865865
}
866866

867-
this.sendDataWebhook('messagesSet', messagesRaw);
867+
this.sendDataWebhook('messagesSet', messagesRaw).catch(() => null);
868868

869869
if (this.databaseOptions.DB_OPTIONS.SYNC_MESSAGES) {
870870
await this.syncMessage(messagesRaw);

0 commit comments

Comments
 (0)