mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Upgrade to iOS 12
This commit is contained in:
@@ -134,8 +134,8 @@ public final class WatchCommunicationManager {
|
||||
if fileManager.fileExists(atPath: presetsFileUrl.path) {
|
||||
try? fileManager.removeItem(atPath: presetsFileUrl.path)
|
||||
}
|
||||
let data = NSKeyedArchiver.archivedData(withRootObject: suggestions)
|
||||
try? data.write(to: presetsFileUrl)
|
||||
let data = try? NSKeyedArchiver.archivedData(withRootObject: suggestions, requiringSecureCoding: false)
|
||||
try? data?.write(to: presetsFileUrl)
|
||||
|
||||
let _ = strongSelf.sendFile(url: presetsFileUrl, metadata: [TGBridgeIncomingFileIdentifierKey: "presets"]).start()
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user