feat(call): add caller phone number to offer call event (#2190)

This commit is contained in:
vini
2026-02-10 21:11:16 -03:00
committed by GitHub
parent a9ba11976e
commit 23156c833e
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -1349,6 +1349,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
const call: WACallEvent = {
chatId: attrs.from!,
from,
callerPn: infoChild.attrs['caller_pn'],
id: callId,
date: new Date(+attrs.t! * 1000),
offline: !!attrs.offline,
@@ -1368,6 +1369,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
if (existingCall) {
call.isVideo = existingCall.isVideo
call.isGroup = existingCall.isGroup
call.callerPn = call.callerPn || existingCall.callerPn
}
// delete data once call has ended