mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-24 17:38:40 -06:00
ppp
This commit is contained in:
parent
c4f7572e7a
commit
dabf8783c8
@ -149,7 +149,6 @@ import { PassThrough, Readable } from 'stream';
|
|||||||
import { v4 } from 'uuid';
|
import { v4 } from 'uuid';
|
||||||
|
|
||||||
import { useVoiceCallsBaileys } from './voiceCalls/useVoiceCallsBaileys';
|
import { useVoiceCallsBaileys } from './voiceCalls/useVoiceCallsBaileys';
|
||||||
import { Console } from 'console';
|
|
||||||
|
|
||||||
const groupMetadataCache = new CacheService(new CacheEngine(configService, 'groups').getEngine());
|
const groupMetadataCache = new CacheService(new CacheEngine(configService, 'groups').getEngine());
|
||||||
|
|
||||||
@ -1133,8 +1132,6 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.dir({received}, {depth: null});
|
|
||||||
|
|
||||||
const editedMessage =
|
const editedMessage =
|
||||||
received?.message?.protocolMessage || received?.message?.editedMessage?.message?.protocolMessage;
|
received?.message?.protocolMessage || received?.message?.editedMessage?.message?.protocolMessage;
|
||||||
|
|
||||||
@ -3957,9 +3954,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async updateMessage(data: UpdateMessageDto) {
|
public async updateMessage(data: UpdateMessageDto) {
|
||||||
console.dir({updateData: data});
|
const jid = createJid(data.number);
|
||||||
data.number = createJid(data.number);
|
|
||||||
const jid = data.number;
|
|
||||||
|
|
||||||
const options = await this.formatUpdateMessage(data);
|
const options = await this.formatUpdateMessage(data);
|
||||||
|
|
||||||
@ -3983,14 +3978,11 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
...(options as any),
|
...(options as any),
|
||||||
edit: data.key,
|
edit: data.key,
|
||||||
});
|
});
|
||||||
|
|
||||||
console.dir({messageSent}, {depth: null});
|
|
||||||
if (messageSent) {
|
if (messageSent) {
|
||||||
const editedMessage =
|
const editedMessage =
|
||||||
messageSent?.message?.protocolMessage || messageSent?.message?.editedMessage?.message?.protocolMessage;
|
messageSent?.message?.protocolMessage || messageSent?.message?.editedMessage?.message?.protocolMessage;
|
||||||
|
|
||||||
if (editedMessage) {
|
if (editedMessage) {
|
||||||
//editedMessage.key.remoteJid = editedMessage.key.remoteJid.replace("s.whatsapp.net", "g.us");
|
|
||||||
this.sendDataWebhook(Events.SEND_MESSAGE_UPDATE, editedMessage);
|
this.sendDataWebhook(Events.SEND_MESSAGE_UPDATE, editedMessage);
|
||||||
if (this.configService.get<Chatwoot>('CHATWOOT').ENABLED && this.localChatwoot?.enabled)
|
if (this.configService.get<Chatwoot>('CHATWOOT').ENABLED && this.localChatwoot?.enabled)
|
||||||
this.chatwootService.eventWhatsapp(
|
this.chatwootService.eventWhatsapp(
|
||||||
|
Loading…
Reference in New Issue
Block a user