Updated log handling

This commit is contained in:
Ali
2022-04-20 23:01:40 +04:00
parent cdf6bde69a
commit d8a9913b40
9 changed files with 122 additions and 27 deletions

View File

@@ -627,7 +627,7 @@ private final class CallSessionManagerContext {
if let strongSelf = self {
if let context = strongSelf.contexts[internalId] {
context.state = .terminated(id: id, accessHash: accessHash, reason: .ended(.hungUp), reportRating: reportRating, sendDebugLogs: sendDebugLogs)
if sendDebugLogs {
/*if sendDebugLogs {
let network = strongSelf.network
let _ = (debugLog
|> timeout(5.0, queue: strongSelf.queue, alternate: .single(nil))
@@ -636,7 +636,7 @@ private final class CallSessionManagerContext {
let _ = _internal_saveCallDebugLog(network: network, callId: CallId(id: id, accessHash: accessHash), log: debugLog).start()
}
})
}
}*/
strongSelf.contextUpdated(internalId: internalId)
if context.isEmpty {
strongSelf.contexts.removeValue(forKey: internalId)