mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Merge pull request #536 from bobpetrov/call
fix: In handle call, isGroup was improved and the group jid was added
This commit is contained in:
@@ -752,7 +752,8 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
||||
|
||||
if(status === 'offer') {
|
||||
call.isVideo = !!getBinaryNodeChild(infoChild, 'video')
|
||||
call.isGroup = infoChild.attrs.type === 'group'
|
||||
call.isGroup = infoChild.attrs.type === 'group' || !!infoChild.attrs['group-jid']
|
||||
call.groupJid = infoChild.attrs['group-jid']
|
||||
callOfferCache.set(call.id, call)
|
||||
}
|
||||
|
||||
|
||||
@@ -5,10 +5,11 @@ export type WACallEvent = {
|
||||
chatId: string
|
||||
from: string
|
||||
isGroup?: boolean
|
||||
groupJid?: string
|
||||
id: string
|
||||
date: Date
|
||||
isVideo?: boolean
|
||||
status: WACallUpdateType
|
||||
offline: boolean
|
||||
latencyMs?: number
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user