We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 834a80c commit d309edeCopy full SHA for d309ede
src/whatsapp/services/chatwoot.service.ts
@@ -819,6 +819,10 @@ export class ChatwootService {
819
820
const bodyMessage = await this.getConversationMessage(body.message);
821
822
+ if (!bodyMessage) {
823
+ return;
824
+ }
825
+
826
if (isMedia) {
827
const downloadBase64 = await waInstance?.getBase64FromMediaMessage({
828
message: {
@@ -839,7 +843,7 @@ export class ChatwootService {
839
843
840
844
writeFileSync(fileName, fileData, 'utf8');
841
845
842
- if (body.key.remoteJid.includes('@g.us')) {
846
+ if (body.key.remoteJid.includes('@g.us') && !body.key.fromMe) {
847
const participantName = body.pushName;
848
849
const content = `**${participantName}**\n\n${bodyMessage}`;
0 commit comments