Skip to content

Your lightweight open-source personal agent.

feat(bridge): send read receipts (blue ticks) for incoming messages

comadreja51bd3337efdf
diff --git a/bridge/src/whatsapp.ts b/bridge/src/whatsapp.ts
index 1b4fb3b9b..eddfd912c 100644
--- a/bridge/src/whatsapp.ts
+++ b/bridge/src/whatsapp.ts
@@ -181,6 +181,14 @@ export class WhatsAppClient {
const msgTimestamp = msg.messageTimestamp as number;
if (msgTimestamp && msgTimestamp < startupTimestamp) continue;
+ // Send read receipt (blue check) immediately
+ try {
+ await this.sock!.readMessages([msg.key]);
+ } catch (e) {
+ // Non-fatal: log but don't block message processing
+ console.error('Failed to send read receipt:', (e as Error).message);
+ }
+
const unwrapped = baileysExtractMessageContent(msg.message);
if (!unwrapped) continue;