mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Refactoring
This commit is contained in:
@@ -3,7 +3,6 @@ import UIKit
|
||||
import SwiftSignalKit
|
||||
import Display
|
||||
import TelegramCore
|
||||
import Postbox
|
||||
import TelegramPresentationData
|
||||
import ProgressNavigationButtonNode
|
||||
import AccountContext
|
||||
@@ -31,7 +30,7 @@ final class BotCheckoutInfoController: ViewController {
|
||||
|
||||
private let context: AccountContext
|
||||
private let invoice: BotPaymentInvoice
|
||||
private let messageId: MessageId
|
||||
private let messageId: EngineMessage.Id
|
||||
private let initialFormInfo: BotPaymentRequestedInfo
|
||||
private let focus: BotCheckoutInfoControllerFocus
|
||||
|
||||
@@ -44,7 +43,14 @@ final class BotCheckoutInfoController: ViewController {
|
||||
private var doneItem: UIBarButtonItem?
|
||||
private var activityItem: UIBarButtonItem?
|
||||
|
||||
public init(context: AccountContext, invoice: BotPaymentInvoice, messageId: MessageId, initialFormInfo: BotPaymentRequestedInfo, focus: BotCheckoutInfoControllerFocus, formInfoUpdated: @escaping (BotPaymentRequestedInfo, BotPaymentValidatedFormInfo) -> Void) {
|
||||
public init(
|
||||
context: AccountContext,
|
||||
invoice: BotPaymentInvoice,
|
||||
messageId: EngineMessage.Id,
|
||||
initialFormInfo: BotPaymentRequestedInfo,
|
||||
focus: BotCheckoutInfoControllerFocus,
|
||||
formInfoUpdated: @escaping (BotPaymentRequestedInfo, BotPaymentValidatedFormInfo) -> Void
|
||||
) {
|
||||
self.context = context
|
||||
self.invoice = invoice
|
||||
self.messageId = messageId
|
||||
|
||||
Reference in New Issue
Block a user