From 3953e6df1f0f5846f6e49ccd0dd4234859dafe47 Mon Sep 17 00:00:00 2001 From: Jefersson Lemes Date: Sun, 27 Mar 2022 12:06:57 -0300 Subject: [PATCH] fix recording audio showing how typing (#1416) --- src/Socket/chats.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Socket/chats.ts b/src/Socket/chats.ts index 1b127f9..54a25a9 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -421,6 +421,10 @@ export const makeChatsSocket = (config: SocketConfig) => { type = 'available' } + if (firstChild.attrs?.media === 'audio'){ + type = 'recording'; + } + presence = { lastKnownPresence: type } } else { logger.error({ tag, attrs, content }, 'recv invalid presence node')