From 658f6b02d3cfa27b1934da81c29ed54da6d54911 Mon Sep 17 00:00:00 2001 From: gavrielc Date: Fri, 13 Feb 2026 22:53:03 +0200 Subject: [PATCH] fix: send available presence on connect so typing indicators work consistently Without announcing 'available' after connecting, WhatsApp stops relaying composing/paused presence updates after the first message. Co-Authored-By: Claude Opus 4.6 --- src/channels/whatsapp.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/channels/whatsapp.ts b/src/channels/whatsapp.ts index d737996..fb0fe44 100644 --- a/src/channels/whatsapp.ts +++ b/src/channels/whatsapp.ts @@ -103,6 +103,9 @@ export class WhatsAppChannel implements Channel { this.connected = true; logger.info('Connected to WhatsApp'); + // Announce availability so WhatsApp relays subsequent presence updates (typing indicators) + this.sock.sendPresenceUpdate('available').catch(() => {}); + // Build LID to phone mapping from auth state for self-chat translation if (this.sock.user) { const phoneUser = this.sock.user.id.split(':')[0];