mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 20:12:02 -06:00
commit
d93a826e28
@ -1222,9 +1222,10 @@ export class ChatwootService {
|
||||
}
|
||||
|
||||
private updateChatwootMessageId(message: MessageRaw, chatwootMessageId: string, instance: InstanceDto) {
|
||||
if (!chatwootMessageId) {
|
||||
if (!chatwootMessageId || !message?.key?.id) {
|
||||
return;
|
||||
}
|
||||
|
||||
message.chatwootMessageId = chatwootMessageId;
|
||||
this.repository.message.update([message], instance.instanceName, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user