mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Merge branch 'stars-subscriptions'
This commit is contained in:
@@ -2744,11 +2744,19 @@ public final class SharedAccountContextImpl: SharedAccountContext {
|
||||
}
|
||||
|
||||
public func makeStarsTransactionScreen(context: AccountContext, transaction: StarsContext.State.Transaction, peer: EnginePeer) -> ViewController {
|
||||
return StarsTransactionScreen(context: context, subject: .transaction(transaction, peer), action: {})
|
||||
return StarsTransactionScreen(context: context, subject: .transaction(transaction, peer))
|
||||
}
|
||||
|
||||
public func makeStarsReceiptScreen(context: AccountContext, receipt: BotPaymentReceipt) -> ViewController {
|
||||
return StarsTransactionScreen(context: context, subject: .receipt(receipt), action: {})
|
||||
return StarsTransactionScreen(context: context, subject: .receipt(receipt))
|
||||
}
|
||||
|
||||
public func makeStarsSubscriptionScreen(context: AccountContext, subscription: StarsContext.State.Subscription, update: @escaping (Bool) -> Void) -> ViewController {
|
||||
return StarsTransactionScreen(context: context, subject: .subscription(subscription), updateSubscription: update)
|
||||
}
|
||||
|
||||
public func makeStarsSubscriptionScreen(context: AccountContext, peer: EnginePeer, pricing: StarsSubscriptionPricing, importer: PeerInvitationImportersState.Importer, usdRate: Double) -> ViewController {
|
||||
return StarsTransactionScreen(context: context, subject: .importer(peer, pricing, importer, usdRate))
|
||||
}
|
||||
|
||||
public func makeStarsStatisticsScreen(context: AccountContext, peerId: EnginePeer.Id, revenueContext: StarsRevenueStatsContext) -> ViewController {
|
||||
@@ -2764,7 +2772,7 @@ public final class SharedAccountContextImpl: SharedAccountContext {
|
||||
}
|
||||
|
||||
public func makeStarsGiftScreen(context: AccountContext, message: EngineMessage) -> ViewController {
|
||||
return StarsTransactionScreen(context: context, subject: .gift(message), action: {})
|
||||
return StarsTransactionScreen(context: context, subject: .gift(message))
|
||||
}
|
||||
|
||||
public func makeMiniAppListScreenInitialData(context: AccountContext) -> Signal<MiniAppListScreenInitialData, NoError> {
|
||||
|
||||
Reference in New Issue
Block a user