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') {
|
if(status === 'offer') {
|
||||||
call.isVideo = !!getBinaryNodeChild(infoChild, 'video')
|
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)
|
callOfferCache.set(call.id, call)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ export type WACallEvent = {
|
|||||||
chatId: string
|
chatId: string
|
||||||
from: string
|
from: string
|
||||||
isGroup?: boolean
|
isGroup?: boolean
|
||||||
|
groupJid?: string
|
||||||
id: string
|
id: string
|
||||||
date: Date
|
date: Date
|
||||||
isVideo?: boolean
|
isVideo?: boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user