fix: use available instead of paused when stopping typing indicator
Sending 'paused' after the first response caused WhatsApp to stop relaying subsequent 'composing' presence updates. Using 'available' keeps the bot in a state where typing indicators work consistently. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -218,7 +218,7 @@ export class WhatsAppChannel implements Channel {
|
||||
|
||||
async setTyping(jid: string, isTyping: boolean): Promise<void> {
|
||||
try {
|
||||
await this.sock.sendPresenceUpdate(isTyping ? 'composing' : 'paused', jid);
|
||||
await this.sock.sendPresenceUpdate(isTyping ? 'composing' : 'available', jid);
|
||||
} catch (err) {
|
||||
logger.debug({ jid, err }, 'Failed to update typing status');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user