mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Refactoring
This commit is contained in:
@@ -224,12 +224,12 @@ private func manageableSpotlightContacts(appBasePath: String, accounts: Signal<[
|
||||
private final class SpotlightDataContextImpl {
|
||||
private let queue: Queue
|
||||
private let appBasePath: String
|
||||
private let accountManager: AccountManager
|
||||
private let accountManager: AccountManager<TelegramAccountManagerTypes>
|
||||
private let indexStorage: SpotlightIndexStorage
|
||||
|
||||
private var listDisposable: Disposable?
|
||||
|
||||
init(queue: Queue, appBasePath: String, accountManager: AccountManager, accounts: Signal<[Account], NoError>) {
|
||||
init(queue: Queue, appBasePath: String, accountManager: AccountManager<TelegramAccountManagerTypes>, accounts: Signal<[Account], NoError>) {
|
||||
self.queue = queue
|
||||
self.appBasePath = appBasePath
|
||||
self.accountManager = accountManager
|
||||
@@ -266,7 +266,7 @@ private final class SpotlightDataContextImpl {
|
||||
public final class SpotlightDataContext {
|
||||
private let impl: QueueLocalObject<SpotlightDataContextImpl>
|
||||
|
||||
public init(appBasePath: String, accountManager: AccountManager, accounts: Signal<[Account], NoError>) {
|
||||
public init(appBasePath: String, accountManager: AccountManager<TelegramAccountManagerTypes>, accounts: Signal<[Account], NoError>) {
|
||||
let queue = Queue()
|
||||
self.impl = QueueLocalObject(queue: queue, generate: {
|
||||
return SpotlightDataContextImpl(queue: queue, appBasePath: appBasePath, accountManager: accountManager, accounts: accounts)
|
||||
|
||||
Reference in New Issue
Block a user