This commit is contained in:
Isaac 2026-02-15 22:50:18 +04:00
parent 038a6e928c
commit dec912f2db
9 changed files with 254 additions and 19 deletions

View file

@ -656,7 +656,9 @@ private func extractAccountManagerState(records: AccountRecordsView<TelegramAcco
} else {
rootPath = rootPathForBasePath(appGroupUrl.path)
}
performAppGroupUpgrades(appGroupPath: appGroupUrl.path, rootPath: rootPath)
if !isUITest {
performAppGroupUpgrades(appGroupPath: appGroupUrl.path, rootPath: rootPath)
}
let deviceSpecificEncryptionParameters = BuildConfig.deviceSpecificEncryptionParameters(rootPath, baseAppBundleId: baseAppBundleId)
let encryptionParameters = ValueBoxEncryptionParameters(forceEncryptionIfNoSet: false, key: ValueBoxEncryptionParameters.Key(data: deviceSpecificEncryptionParameters.key)!, salt: ValueBoxEncryptionParameters.Salt(data: deviceSpecificEncryptionParameters.salt)!)