[core] ChatWoot - ignore fromMe in ack

mention #1492
This commit is contained in:
devlikepro committed 2025-10-14 15:21:40 +07:00
1 parent e13ccdab9c
commit 71f9adeff4
1 file changed
+5 -1
@@ -37,8 +37,12 @@ export class WAHAMessageAckConsumer extends ChatWootWAHABaseConsumer {
if (!isJidCusFormat(chatId) && !isLidUser(chatId)) {
return false;
}
// Only READ and PLAYED
const payload = event.payload;
if (payload.fromMe) {
// Ignore from me
return;
}
// Only READ and PLAYED
return (
payload.ack === WAMessageAck.READ || payload.ack == WAMessageAck.PLAYED
);