fix(Gmail Trigger Node): Handle self-sent emails in inbox (#19351)

Co-authored-by: riascho <123465523+riascho@users.noreply.github.com>
This commit is contained in:
GURAASEES SINGH TANEJA
2025-09-12 19:17:24 +05:30
committed by GitHub
parent 61029ef4f8
commit 47f1d14b66
2 changed files with 57 additions and 2 deletions

View File

@@ -326,8 +326,11 @@ export class GmailTrigger implements INodeType {
continue;
}
}
if (node.typeVersion > 1.2 && fullMessage.labelIds?.includes('SENT')) {
if (
node.typeVersion > 1.2 &&
fullMessage.labelIds?.includes('SENT') &&
!fullMessage.labelIds?.includes('INBOX')
) {
continue;
}