Skip to content

Commit 71f9ade

Browse files
committed
[core] ChatWoot - ignore fromMe in ack
mention #1492
1 parent e13ccda commit 71f9ade

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/apps/chatwoot/consumers/waha/message.ack.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ export class WAHAMessageAckConsumer extends ChatWootWAHABaseConsumer {
3737
if (!isJidCusFormat(chatId) && !isLidUser(chatId)) {
3838
return false;
3939
}
40-
// Only READ and PLAYED
4140
const payload = event.payload;
41+
if (payload.fromMe) {
42+
// Ignore from me
43+
return;
44+
}
45+
// Only READ and PLAYED
4246
return (
4347
payload.ack === WAMessageAck.READ || payload.ack == WAMessageAck.PLAYED
4448
);

0 commit comments

Comments
 (0)