mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-01-11 06:12:19 -06:00
Merge pull request #2186 from muriloleal13/fix/baileys-message-processor-reconnection
fix(baileys): resolve incoming message events not working after reconnection
This commit is contained in:
@@ -723,6 +723,11 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
this.loadWebhook();
|
||||
this.loadProxy();
|
||||
|
||||
// Remontar o messageProcessor para garantir que está funcionando após reconexão
|
||||
this.messageProcessor.mount({
|
||||
onMessageReceive: this.messageHandle['messages.upsert'].bind(this),
|
||||
});
|
||||
|
||||
return await this.createClient(number);
|
||||
} catch (error) {
|
||||
this.logger.error(error);
|
||||
|
||||
Reference in New Issue
Block a user