diff --git a/src/Socket/messages-recv.ts b/src/Socket/messages-recv.ts index 93a2fa8..50e1644 100644 --- a/src/Socket/messages-recv.ts +++ b/src/Socket/messages-recv.ts @@ -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) } diff --git a/src/Types/Call.ts b/src/Types/Call.ts index cea184a..06f3b1f 100644 --- a/src/Types/Call.ts +++ b/src/Types/Call.ts @@ -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 -} \ No newline at end of file +}