Various improvements

This commit is contained in:
Ilya Laktyushin
2022-06-24 20:22:28 +05:00
parent 4e21428c10
commit 1c07c18f15
38 changed files with 3707 additions and 274 deletions

View File

@@ -186,11 +186,8 @@ public final class AccountContextImpl: AccountContext {
self.prefetchManager = PrefetchManagerImpl(sharedContext: sharedContext, account: account, engine: self.engine, fetchManager: self.fetchManager)
self.wallpaperUploadManager = WallpaperUploadManagerImpl(sharedContext: sharedContext, account: account, presentationData: sharedContext.presentationData)
self.themeUpdateManager = ThemeUpdateManagerImpl(sharedContext: sharedContext, account: account)
if let premiumProductId = sharedContext.premiumProductId {
self.inAppPurchaseManager = InAppPurchaseManager(engine: self.engine, premiumProductId: premiumProductId)
} else {
self.inAppPurchaseManager = nil
}
self.inAppPurchaseManager = InAppPurchaseManager(engine: self.engine)
} else {
self.prefetchManager = nil
self.wallpaperUploadManager = nil