mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Never delete data in extensions
This commit is contained in:
parent
58bf113ecf
commit
dbf2e348f1
@ -124,8 +124,11 @@ final class AccountManagerImpl<Types: AccountManagerTypes> {
|
|||||||
self.currentAtomicState = atomicState
|
self.currentAtomicState = atomicState
|
||||||
} catch let e {
|
} catch let e {
|
||||||
postboxLog("decode atomic state error: \(e)")
|
postboxLog("decode atomic state error: \(e)")
|
||||||
let _ = try? FileManager.default.removeItem(atPath: self.atomicStatePath)
|
|
||||||
postboxLogSync()
|
postboxLogSync()
|
||||||
|
|
||||||
|
if removeDatabaseOnError {
|
||||||
|
let _ = try? FileManager.default.removeItem(atPath: self.atomicStatePath)
|
||||||
|
}
|
||||||
preconditionFailure()
|
preconditionFailure()
|
||||||
}
|
}
|
||||||
} catch let e {
|
} catch let e {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user