mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 03:09:56 +00:00
macos syntax
This commit is contained in:
parent
40dbadccd4
commit
e653a8d607
@ -160,7 +160,7 @@ final class NetworkBroadcastPartSource: BroadcastPartSource {
|
||||
switch result.status {
|
||||
case let .data(dataValue):
|
||||
#if DEBUG
|
||||
if let debugDumpDirectory {
|
||||
if let debugDumpDirectory = debugDumpDirectory {
|
||||
let tempFilePath = debugDumpDirectory.path + "/\(timestampMilliseconds).mp4"
|
||||
let _ = try? dataValue.subdata(in: 32 ..< dataValue.count).write(to: URL(fileURLWithPath: tempFilePath))
|
||||
print("Dump stream part: \(tempFilePath)")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user