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:
ShellTear
2024-01-03 00:09:48 +02:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

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

View File

@@ -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
}
}