fix recording audio showing how typing (#1416)

This commit is contained in:
Jefersson Lemes
2022-03-27 12:06:57 -03:00
committed by GitHub
parent 54a448b2a8
commit 3953e6df1f

View File

@@ -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')