Fix status 'recording' on sendPresenceUpdate (#1437)

* Fix status 'recording' on sendPresenceUpdate

* lint chat.ts
This commit is contained in:
Jefersson Lemes
2022-03-30 15:01:01 -03:00
committed by GitHub
parent 0a331ceab3
commit ac9625adbb

View File

@@ -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' } : {}
}
]
})
}