feat: Update chatwoot source ID and status after sent

This commit is contained in:
Judson Cairo
2024-09-27 09:40:18 -03:00
parent e241cf4ee0
commit f9726863ef
2 changed files with 12 additions and 0 deletions

View File

@@ -1453,6 +1453,10 @@ export class ChatwootService {
chatwootIsRead: chatwootMessageIds.isRead,
},
});
if (this.isImportHistoryAvailable()) {
chatwootImport.updateMessageSourceID(chatwootMessageIds.messageId, key.id);
}
}
private async getMessageByKeyId(instance: InstanceDto, keyId: string): Promise<MessageModel> {