Fix call reporting

This commit is contained in:
Ali
2021-11-15 19:24:47 +04:00
parent 5b285a8b66
commit 78f4adf784
4 changed files with 116 additions and 115 deletions

View File

@@ -729,6 +729,7 @@ private final class NotificationServiceHandler {
var accessHash: Int64
var fromId: PeerId
var updates: String
var accountId: Int64
}
var callData: CallData?
@@ -761,7 +762,8 @@ private final class NotificationServiceHandler {
id: callId,
accessHash: callAccessHash,
fromId: peerId,
updates: updates
updates: updates,
accountId: recordId.int64
)
}
}
@@ -908,7 +910,8 @@ private final class NotificationServiceHandler {
"call_id": "\(callData.id)",
"call_ah": "\(callData.accessHash)",
"from_id": "\(callData.fromId.id._internalGetInt64Value())",
"updates": callData.updates
"updates": callData.updates,
"accountId": "\(callData.accountId)"
]
Logger.shared.log("NotificationService \(episode)", "Will report voip notification")
let content = NotificationContent()