Skip to content

Commit 9a43c0f

Browse files
committed
fix(whatsapp): mark internal system events trusted
1 parent 11f9b42 commit 9a43c0f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

extensions/whatsapp/src/auto-reply/monitor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ export async function monitorWebChannel(
443443
});
444444
enqueueSystemEvent(`WhatsApp gateway connected${selfE164 ? ` as ${selfE164}` : ""}.`, {
445445
sessionKey: connectRoute.sessionKey,
446+
trusted: true,
446447
});
447448

448449
const normalizedAccountId = normalizeReconnectAccountId(account.accountId);
@@ -502,6 +503,7 @@ export async function monitorWebChannel(
502503
`WhatsApp gateway disconnected (status ${decision.normalized.statusLabel})`,
503504
{
504505
sessionKey: connectRoute.sessionKey,
506+
trusted: true,
505507
},
506508
);
507509

0 commit comments

Comments
 (0)