Skip to content

Commit 1148180

Browse files
committed
test: baileys renatoiub
1 parent c0537f4 commit 1148180

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@sentry/node": "^8.28.0",
5454
"amqplib": "^0.10.3",
5555
"axios": "^1.6.5",
56-
"baileys": "6.7.8",
56+
"baileys": "github:renatoiub/Baileys",
5757
"class-validator": "^0.14.1",
5858
"compression": "^1.7.4",
5959
"cors": "^2.8.5",

src/api/dto/chat.dto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
proto,
33
WAPresence,
4-
WAPrivacyGroupAddValue,
4+
// WAPrivacyGroupAddValue,
55
WAPrivacyOnlineValue,
66
WAPrivacyValue,
77
WAReadReceiptsValue,
@@ -91,7 +91,7 @@ export class PrivacySettingDto {
9191
status: WAPrivacyValue;
9292
online: WAPrivacyOnlineValue;
9393
last: WAPrivacyValue;
94-
groupadd: WAPrivacyGroupAddValue;
94+
groupadd: WAPrivacyValue;
9595
}
9696

9797
export class DeleteMessage {

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -805,8 +805,8 @@ export class BaileysStartupService extends ChannelStartupService {
805805
{
806806
messages,
807807
type,
808-
requestId,
809-
}: {
808+
}: // requestId,
809+
{
810810
messages: proto.IWebMessageInfo[];
811811
type: MessageUpsertType;
812812
requestId?: string;
@@ -815,20 +815,20 @@ export class BaileysStartupService extends ChannelStartupService {
815815
) => {
816816
try {
817817
for (const received of messages) {
818-
if (received.message?.conversation || received.message?.extendedTextMessage?.text) {
819-
const text = received.message?.conversation || received.message?.extendedTextMessage?.text;
820-
if (text == 'requestPlaceholder' && !requestId) {
821-
const messageId = await this.client.requestPlaceholderResend(received.key);
822-
console.log('requested placeholder resync, id=', messageId);
823-
} else if (requestId) {
824-
console.log('Message received from phone, id=', requestId, received);
825-
}
826-
827-
if (text == 'onDemandHistSync') {
828-
const messageId = await this.client.fetchMessageHistory(50, received.key, received.messageTimestamp!);
829-
console.log('requested on-demand sync, id=', messageId);
830-
}
831-
}
818+
// if (received.message?.conversation || received.message?.extendedTextMessage?.text) {
819+
// const text = received.message?.conversation || received.message?.extendedTextMessage?.text;
820+
// if (text == 'requestPlaceholder' && !requestId) {
821+
// const messageId = await this.client.requestPlaceholderResend(received.key);
822+
// console.log('requested placeholder resync, id=', messageId);
823+
// } else if (requestId) {
824+
// console.log('Message received from phone, id=', requestId, received);
825+
// }
826+
827+
// if (text == 'onDemandHistSync') {
828+
// const messageId = await this.client.fetchMessageHistory(50, received.key, received.messageTimestamp!);
829+
// console.log('requested on-demand sync, id=', messageId);
830+
// }
831+
// }
832832

833833
if (received.message?.protocolMessage?.editedMessage || received.message?.editedMessage?.message) {
834834
const editedMessage =

0 commit comments

Comments
 (0)