Skip to content

Commit b1ce914

Browse files
authored
Merge branch 'EvolutionAPI:develop' into develop
2 parents c7fcded + b62917e commit b1ce914

7 files changed

Lines changed: 180 additions & 80 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
- Fixed `ERROR: relation "public.Instance" does not exist` issue in migration `20250918182355_add_kafka_integration`
88
- Aligned table naming convention with other Evolution API migrations for consistency
99
- Resolved database migration failure that prevented Kafka integration setup
10+
* **Update Baileys Version**: v7.0.0-rc.4
11+
* Refactor connection with PostgreSQL and improve message handling
12+
1013

1114
###
1215

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"amqplib": "^0.10.5",
7878
"audio-decode": "^2.2.3",
7979
"axios": "^1.7.9",
80-
"baileys": "^7.0.0-rc.3",
80+
"baileys": "^7.0.0-rc.4",
8181
"class-validator": "^0.14.1",
8282
"compression": "^1.7.5",
8383
"cors": "^2.8.5",

src/api/integrations/channel/whatsapp/voiceCalls/useVoiceCallsBaileys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const useVoiceCallsBaileys = async (
7171

7272
socket.on('assertSessions', async (jids, force, callback) => {
7373
try {
74-
const response = await baileys_sock.assertSessions(jids, force);
74+
const response = await baileys_sock.assertSessions(jids);
7575

7676
callback(response);
7777

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,11 @@ export class BaileysStartupService extends ChannelStartupService {
14981498
`) as any[];
14991499
findMessage = messages[0] || null;
15001500

1501-
if (findMessage) message.messageId = findMessage.id;
1501+
if (!findMessage?.id) {
1502+
this.logger.warn(`Original message not found for update. Skipping. Key: ${JSON.stringify(key)}`);
1503+
continue;
1504+
}
1505+
message.messageId = findMessage.id;
15021506
}
15031507

15041508
if (update.message === null && update.status === undefined) {
@@ -4561,8 +4565,8 @@ export class BaileysStartupService extends ChannelStartupService {
45614565
return response;
45624566
}
45634567

4564-
public async baileysAssertSessions(jids: string[], force: boolean) {
4565-
const response = await this.client.assertSessions(jids, force);
4568+
public async baileysAssertSessions(jids: string[]) {
4569+
const response = await this.client.assertSessions(jids);
45664570

45674571
return response;
45684572
}

0 commit comments

Comments
 (0)