@@ -995,6 +995,16 @@ public enum SendInviteLinkScreenSubject {
995995 case groupCall( link: String )
996996}
997997
998+ public enum StarsWithdrawalScreenSubject {
999+ public enum PaidMessageKind {
1000+ case privacy
1001+ case postSuggestion
1002+ }
1003+
1004+ case withdraw
1005+ case enterAmount( current: StarsAmount , minValue: StarsAmount , fractionAfterCommission: Int , kind: PaidMessageKind )
1006+ }
1007+
9981008public protocol SharedAccountContext : AnyObject {
9991009 var sharedContainerPath : String { get }
10001010 var basePath : String { get }
@@ -1179,7 +1189,7 @@ public protocol SharedAccountContext: AnyObject {
11791189 func makeStarsStatisticsScreen( context: AccountContext , peerId: EnginePeer . Id , revenueContext: StarsRevenueStatsContext ) -> ViewController
11801190 func makeStarsAmountScreen( context: AccountContext , initialValue: Int64 ? , completion: @escaping ( Int64 ) -> Void ) -> ViewController
11811191 func makeStarsWithdrawalScreen( context: AccountContext , stats: StarsRevenueStats , completion: @escaping ( Int64 ) -> Void ) -> ViewController
1182- func makeStarsWithdrawalScreen( context: AccountContext , completion: @escaping ( Int64 ) -> Void ) -> ViewController
1192+ func makeStarsWithdrawalScreen( context: AccountContext , subject : StarsWithdrawalScreenSubject , completion: @escaping ( Int64 ) -> Void ) -> ViewController
11831193 func makeStarGiftResellScreen( context: AccountContext , update: Bool , completion: @escaping ( Int64 ) -> Void ) -> ViewController
11841194 func makeStarsGiftScreen( context: AccountContext , message: EngineMessage ) -> ViewController
11851195 func makeStarsGiveawayBoostScreen( context: AccountContext , peerId: EnginePeer . Id , boost: ChannelBoostersContext . State . Boost ) -> ViewController
@@ -1212,9 +1222,10 @@ public protocol SharedAccountContext: AnyObject {
12121222 func makeGalleryController( context: AccountContext , source: GalleryControllerItemSource , streamSingleVideo: Bool , isPreview: Bool ) -> ViewController
12131223
12141224 func makeAccountFreezeInfoScreen( context: AccountContext ) -> ViewController
1215-
12161225 func makeSendInviteLinkScreen( context: AccountContext , subject: SendInviteLinkScreenSubject , peers: [ TelegramForbiddenInvitePeer ] , theme: PresentationTheme ? ) -> ViewController
12171226
1227+ func makePostSuggestionsSettingsScreen( context: AccountContext ) -> ViewController
1228+
12181229 func makeDebugSettingsController( context: AccountContext ? ) -> ViewController ?
12191230
12201231 func openCreateGroupCallUI( context: AccountContext , peerIds: [ EnginePeer . Id ] , parentController: ViewController )
0 commit comments