mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix recording audio showing how typing (#1416)
This commit is contained in:
@@ -421,6 +421,10 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
|||||||
type = 'available'
|
type = 'available'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (firstChild.attrs?.media === 'audio'){
|
||||||
|
type = 'recording';
|
||||||
|
}
|
||||||
|
|
||||||
presence = { lastKnownPresence: type }
|
presence = { lastKnownPresence: type }
|
||||||
} else {
|
} else {
|
||||||
logger.error({ tag, attrs, content }, 'recv invalid presence node')
|
logger.error({ tag, attrs, content }, 'recv invalid presence node')
|
||||||
|
|||||||
Reference in New Issue
Block a user