mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Fix status 'recording' on sendPresenceUpdate (#1437)
* Fix status 'recording' on sendPresenceUpdate * lint chat.ts
This commit is contained in:
@@ -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' } : {}
|
||||
}
|
||||
]
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user