Support read-only databases

This commit is contained in:
Ali
2021-02-17 17:46:02 +04:00
parent 29c08a7019
commit 7b8eed29c3
13 changed files with 110 additions and 78 deletions

View File

@@ -664,7 +664,7 @@ final class SharedApplicationContext {
})
let accountManagerSignal = Signal<AccountManager, NoError> { subscriber in
let accountManager = AccountManager(basePath: rootPath + "/accounts-metadata", isTemporary: false)
let accountManager = AccountManager(basePath: rootPath + "/accounts-metadata", isTemporary: false, isReadOnly: false)
return (upgradedAccounts(accountManager: accountManager, rootPath: rootPath, encryptionParameters: encryptionParameters)
|> deliverOnMainQueue).start(next: { progress in
if self.dataImportSplash == nil {