mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Merge branch 'master' into experimental-2
This commit is contained in:
@@ -412,7 +412,12 @@ func contextMenuForChatPresentationIntefaceState(chatPresentationInterfaceState:
|
||||
let logsPath = callLogsPath(account: context.account)
|
||||
let logPath = logsPath + "/" + logName
|
||||
let start = logName.index(logName.startIndex, offsetBy: "\(id)".count + 1)
|
||||
let end = logName.index(logName.endIndex, offsetBy: -4 - 5)
|
||||
let end: String.Index
|
||||
if logName.hasSuffix(".log.json") {
|
||||
end = logName.index(logName.endIndex, offsetBy: -4 - 5)
|
||||
} else {
|
||||
end = logName.index(logName.endIndex, offsetBy: -4)
|
||||
}
|
||||
let accessHash = logName[start..<end]
|
||||
if let accessHash = Int64(accessHash) {
|
||||
callId = CallId(id: id, accessHash: accessHash)
|
||||
|
||||
Reference in New Issue
Block a user