mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Refactoring
This commit is contained in:
@@ -30,7 +30,7 @@ private enum DebugAccountsControllerSection: Int32 {
|
||||
}
|
||||
|
||||
private enum DebugAccountsControllerEntry: ItemListNodeEntry {
|
||||
case record(PresentationTheme, AccountRecord, Bool)
|
||||
case record(PresentationTheme, AccountRecord<TelegramAccountManagerTypes.Attribute>, Bool)
|
||||
case loginNewAccount(PresentationTheme)
|
||||
|
||||
var section: ItemListSectionId {
|
||||
@@ -87,7 +87,7 @@ private enum DebugAccountsControllerEntry: ItemListNodeEntry {
|
||||
}
|
||||
}
|
||||
|
||||
private func debugAccountsControllerEntries(view: AccountRecordsView, presentationData: PresentationData) -> [DebugAccountsControllerEntry] {
|
||||
private func debugAccountsControllerEntries(view: AccountRecordsView<TelegramAccountManagerTypes>, presentationData: PresentationData) -> [DebugAccountsControllerEntry] {
|
||||
var entries: [DebugAccountsControllerEntry] = []
|
||||
|
||||
for entry in view.records.sorted(by: {
|
||||
@@ -101,7 +101,7 @@ private func debugAccountsControllerEntries(view: AccountRecordsView, presentati
|
||||
return entries
|
||||
}
|
||||
|
||||
public func debugAccountsController(context: AccountContext, accountManager: AccountManager) -> ViewController {
|
||||
public func debugAccountsController(context: AccountContext, accountManager: AccountManager<TelegramAccountManagerTypes>) -> ViewController {
|
||||
var presentControllerImpl: ((ViewController, ViewControllerPresentationArguments?) -> Void)?
|
||||
|
||||
let arguments = DebugAccountsControllerArguments(context: context, presentController: { controller, arguments in
|
||||
|
||||
Reference in New Issue
Block a user