From ac9625adbb89609a2971106bdc68a59a79797d08 Mon Sep 17 00:00:00 2001 From: Jefersson Lemes Date: Wed, 30 Mar 2022 15:01:01 -0300 Subject: [PATCH] Fix status 'recording' on sendPresenceUpdate (#1437) * Fix status 'recording' on sendPresenceUpdate * lint chat.ts --- src/Socket/chats.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Socket/chats.ts b/src/Socket/chats.ts index 342c1b3..634ccc1 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -389,7 +389,10 @@ export const makeChatsSocket = (config: SocketConfig) => { to: toJid, }, content: [ - { tag: type, attrs: { } } + { + tag: type === 'recording' ? 'composing' : type, + attrs: type === 'recording' ? { media : 'audio' } : {} + } ] }) }