@@ -1273,6 +1273,7 @@ public protocol SharedAccountContext: AnyObject {
12731273 func navigateToChat( accountId: AccountRecordId , peerId: PeerId , messageId: MessageId ? )
12741274 func openChatMessage( _ params: OpenChatMessageParams ) -> Bool
12751275 func messageFromPreloadedChatHistoryViewForLocation( id: MessageId , location: ChatHistoryLocationInput , context: AccountContext , chatLocation: ChatLocation , subject: ChatControllerSubject ? , chatLocationContextHolder: Atomic < ChatLocationContextHolder ? > , tag: HistoryViewInputTag ? ) -> Signal < ( MessageIndex ? , Bool ) , NoError >
1276+
12761277 func makeOverlayAudioPlayerController( context: AccountContext , chatLocation: ChatLocation , type: MediaManagerPlayerType , initialMessageId: MessageId , initialOrder: MusicPlaybackSettingsOrder , playlistLocation: SharedMediaPlaylistLocation ? , parentNavigationController: NavigationController ? ) -> ViewController & OverlayAudioPlayerController
12771278 func makePeerInfoController( context: AccountContext , updatedPresentationData: ( initial: PresentationData , signal: Signal < PresentationData , NoError > ) ? , peer: Peer , mode: PeerInfoControllerMode , avatarInitiallyExpanded: Bool , fromChat: Bool , requestsContext: PeerInvitationImportersContext ? ) -> ViewController ?
12781279 func makeChannelAdminController( context: AccountContext , peerId: PeerId , adminId: PeerId , initialParticipant: ChannelParticipant ) -> ViewController ?
@@ -1356,54 +1357,34 @@ public protocol SharedAccountContext: AnyObject {
13561357 func makeInstantPageController( context: AccountContext , message: Message , sourcePeerType: MediaAutoDownloadPeerType ? ) -> ViewController ?
13571358 func makeInstantPageController( context: AccountContext , webPage: TelegramMediaWebpage , anchor: String ? , sourceLocation: InstantPageSourceLocation ) -> ViewController
13581359 func openChatWallpaper( context: AccountContext , message: Message , present: @escaping ( ViewController , Any ? ) -> Void )
1359-
13601360 func makeRecentSessionsController( context: AccountContext , activeSessionsContext: ActiveSessionsContext ) -> ViewController & RecentSessionsController
1361-
13621361 func makeChatQrCodeScreen( context: AccountContext , peer: Peer , threadId: Int64 ? , temporary: Bool ) -> ViewController
1363-
13641362 func makePremiumIntroController( context: AccountContext , source: PremiumIntroSource , forceDark: Bool , dismissed: ( ( ) -> Void ) ? ) -> ViewController
13651363 func makePremiumIntroController( sharedContext: SharedAccountContext , engine: TelegramEngineUnauthorized , inAppPurchaseManager: InAppPurchaseManager , source: PremiumIntroSource , proceed: ( ( ) -> Void ) ? ) -> ViewController
1366-
13671364 func makePremiumDemoController( context: AccountContext , subject: PremiumDemoSubject , forceDark: Bool , action: @escaping ( ) -> Void , dismissed: ( ( ) -> Void ) ? ) -> ViewController
13681365 func makePremiumLimitController( context: AccountContext , subject: PremiumLimitSubject , count: Int32 , forceDark: Bool , cancel: @escaping ( ) -> Void , action: @escaping ( ) -> Bool ) -> ViewController
1369-
13701366 func makeStarsGiftController( context: AccountContext , birthdays: [ EnginePeer . Id : TelegramBirthday ] ? , completion: @escaping ( ( [ EnginePeer . Id ] ) -> Void ) ) -> ViewController
13711367 func makePremiumGiftController( context: AccountContext , source: PremiumGiftSource , completion: ( ( [ EnginePeer . Id ] ) -> Signal < Never , TransferStarGiftError > ) ? ) -> ViewController
13721368 func makeGiftOptionsController( context: AccountContext , peerId: EnginePeer . Id , premiumOptions: [ CachedPremiumGiftOption ] , hasBirthday: Bool , completion: ( ( ) -> Void ) ? ) -> ViewController
13731369 func makeGiftStoreController( context: AccountContext , peerId: EnginePeer . Id , gift: StarGift . Gift ) -> ViewController
13741370 func makePremiumPrivacyControllerController( context: AccountContext , subject: PremiumPrivacySubject , peerId: EnginePeer . Id ) -> ViewController
13751371 func makePremiumBoostLevelsController( context: AccountContext , peerId: EnginePeer . Id , subject: BoostSubject , boostStatus: ChannelBoostStatus , myBoostStatus: MyBoostStatus , forceDark: Bool , openStats: ( ( ) -> Void ) ? ) -> ViewController
1376-
13771372 func makeStickerPackScreen( context: AccountContext , updatedPresentationData: ( initial: PresentationData , signal: Signal < PresentationData , NoError > ) ? , mainStickerPack: StickerPackReference , stickerPacks: [ StickerPackReference ] , loadedStickerPacks: [ LoadedStickerPack ] , actionTitle: String ? , isEditing: Bool , expandIfNeeded: Bool , parentNavigationController: NavigationController ? , sendSticker: ( ( FileMediaReference , UIView , CGRect ) -> Bool ) ? , actionPerformed: ( ( Bool ) -> Void ) ? ) -> ViewController
1378-
13791373 func makeCameraScreen( context: AccountContext , mode: CameraScreenMode , cameraHolder: Any ? , transitionIn: CameraScreenTransitionIn ? , transitionOut: @escaping ( Bool ) -> CameraScreenTransitionOut ? , completion: @escaping ( Any , @escaping ( ) -> Void ) -> Void , transitionedOut: ( ( ) -> Void ) ? ) -> ViewController
1380-
13811374 func makeMediaPickerScreen( context: AccountContext , hasSearch: Bool , completion: @escaping ( Any ) -> Void ) -> ViewController
1382-
13831375 func makeStoryMediaEditorScreen( context: AccountContext , source: Any ? , text: String ? , link: ( url: String , name: String ? ) ? , remainingCount: Int32 , completion: @escaping ( [ MediaEditorScreenResult ] , MediaEditorTransitionOutExternalState , @escaping ( @escaping ( ) -> Void ) -> Void ) -> Void ) -> ViewController
1384-
13851376 func makeBotPreviewEditorScreen( context: AccountContext , source: Any ? , target: Stories . PendingTarget , transitionArguments: ( UIView , CGRect , UIImage ? ) ? , transitionOut: @escaping ( ) -> BotPreviewEditorTransitionOut ? , externalState: MediaEditorTransitionOutExternalState , completion: @escaping ( MediaEditorScreenResult , @escaping ( @escaping ( ) -> Void ) -> Void ) -> Void , cancelled: @escaping ( ) -> Void ) -> ViewController
1386-
13871377 func makeStickerEditorScreen( context: AccountContext , source: Any ? , intro: Bool , transitionArguments: ( UIView , CGRect , UIImage ? ) ? , completion: @escaping ( TelegramMediaFile , [ String ] , @escaping ( ) -> Void ) -> Void , cancelled: @escaping ( ) -> Void ) -> ViewController
1388-
13891378 func makeStickerMediaPickerScreen( context: AccountContext , getSourceRect: @escaping ( ) -> CGRect ? , completion: @escaping ( Any ? , UIView ? , CGRect , UIImage ? , Bool , @escaping ( Bool ? ) -> ( UIView , CGRect ) ? , @escaping ( ) -> Void ) -> Void , dismissed: @escaping ( ) -> Void ) -> ViewController
1390-
13911379 func makeAvatarMediaPickerScreen( context: AccountContext , getSourceRect: @escaping ( ) -> CGRect ? , canDelete: Bool , performDelete: @escaping ( ) -> Void , completion: @escaping ( Any ? , UIView ? , CGRect , UIImage ? , Bool , @escaping ( Bool ? ) -> ( UIView , CGRect ) ? , @escaping ( ) -> Void ) -> Void , dismissed: @escaping ( ) -> Void ) -> ViewController
1392-
13931380 func makeStoryMediaPickerScreen( context: AccountContext , isDark: Bool , forCollage: Bool , selectionLimit: Int ? , getSourceRect: @escaping ( ) -> CGRect , completion: @escaping ( Any , UIView , CGRect , UIImage ? , @escaping ( Bool ? ) -> ( UIView , CGRect ) ? , @escaping ( ) -> Void ) -> Void , multipleCompletion: @escaping ( [ Any ] , Bool ) -> Void , dismissed: @escaping ( ) -> Void , groupsPresented: @escaping ( ) -> Void ) -> ViewController
1394-
13951381 func makeStickerPickerScreen( context: AccountContext , inputData: Promise < StickerPickerInput > , completion: @escaping ( FileMediaReference ) -> Void ) -> ViewController
1396-
13971382 func makeProxySettingsController( sharedContext: SharedAccountContext , account: UnauthorizedAccount ) -> ViewController
1398-
13991383 func makeDataAndStorageController( context: AccountContext , sensitiveContent: Bool ) -> ViewController
1400-
14011384 func makeInstalledStickerPacksController( context: AccountContext , mode: InstalledStickerPacksControllerMode , forceTheme: PresentationTheme ? ) -> ViewController
1402-
14031385 func makeChannelStatsController( context: AccountContext , updatedPresentationData: ( initial: PresentationData , signal: Signal < PresentationData , NoError > ) ? , peerId: EnginePeer . Id , boosts: Bool , boostStatus: ChannelBoostStatus ? ) -> ViewController
14041386 func makeMessagesStatsController( context: AccountContext , updatedPresentationData: ( initial: PresentationData , signal: Signal < PresentationData , NoError > ) ? , messageId: EngineMessage . Id ) -> ViewController
14051387 func makeStoryStatsController( context: AccountContext , updatedPresentationData: ( initial: PresentationData , signal: Signal < PresentationData , NoError > ) ? , peerId: EnginePeer . Id , storyId: Int32 , storyItem: EngineStoryItem , fromStory: Bool ) -> ViewController
1406-
14071388 func makeStarsTransactionsScreen( context: AccountContext , starsContext: StarsContext ) -> ViewController
14081389 func makeStarsPurchaseScreen( context: AccountContext , starsContext: StarsContext , options: [ Any ] , purpose: StarsPurchasePurpose , targetPeerId: EnginePeer . Id ? , customTheme: PresentationTheme ? , completion: @escaping ( Int64 ) -> Void ) -> ViewController
14091390 func makeStarsTransferScreen( context: AccountContext , starsContext: StarsContext , invoice: TelegramMediaInvoice , source: BotPaymentInvoiceSource , extendedMedia: [ TelegramExtendedMedia ] , inputData: Signal < ( StarsContext . State , BotPaymentForm , EnginePeer ? , EnginePeer ? ) ? , NoError > , completion: @escaping ( Bool ) -> Void ) -> ViewController
@@ -1431,33 +1412,23 @@ public protocol SharedAccountContext: AnyObject {
14311412 func makeGiftOfferScreen( context: AccountContext , gift: StarGift . UniqueGift , peer: EnginePeer , amount: CurrencyAmount , commit: @escaping ( ) -> Void ) -> ViewController
14321413 func makeGiftUpgradeVariantsPreviewScreen( context: AccountContext , gift: StarGift , attributes: [ StarGift . UniqueGift . Attribute ] ) -> ViewController
14331414 func makeGiftAuctionWearPreviewScreen( context: AccountContext , auctionContext: GiftAuctionContext , acquiredGifts: Signal < [ GiftAuctionAcquiredGift ] , NoError > ? , attributes: [ StarGift . UniqueGift . Attribute ] , completion: @escaping ( ) -> Void ) -> ViewController
1434-
1415+ func makeGiftDemoScreen ( context : AccountContext ) -> ViewController
14351416 func makeStorySharingScreen( context: AccountContext , subject: StorySharingSubject , parentController: ViewController ) -> ViewController
1436-
14371417 func makeContentReportScreen( context: AccountContext , subject: ReportContentSubject , forceDark: Bool , present: @escaping ( ViewController ) -> Void , completion: @escaping ( ) -> Void , requestSelectMessages: ( ( String , Data , String ? ) -> Void ) ? )
1438-
14391418 func makeShareController( context: AccountContext , subject: ShareControllerSubject , forceExternal: Bool , shareStory: ( ( ) -> Void ) ? , enqueued: ( ( [ PeerId ] , [ Int64 ] ) -> Void ) ? , actionCompleted: ( ( ) -> Void ) ? ) -> ViewController
1440-
14411419 func makeMiniAppListScreenInitialData( context: AccountContext ) -> Signal < MiniAppListScreenInitialData , NoError >
14421420 func makeMiniAppListScreen( context: AccountContext , initialData: MiniAppListScreenInitialData ) -> ViewController
1443-
14441421 func makeIncomingMessagePrivacyScreen( context: AccountContext , value: GlobalPrivacySettings . NonContactChatsPrivacy , exceptions: SelectivePrivacySettings , update: @escaping ( GlobalPrivacySettings . NonContactChatsPrivacy ) -> Void ) -> ViewController
1445-
14461422 func openWebApp( context: AccountContext , parentController: ViewController , updatedPresentationData: ( initial: PresentationData , signal: Signal < PresentationData , NoError > ) ? , botPeer: EnginePeer , chatPeer: EnginePeer ? , threadId: Int64 ? , buttonText: String , url: String , simple: Bool , source: ChatOpenWebViewSource , skipTermsOfService: Bool , payload: String ? , verifyAgeCompletion: ( ( Int ) -> Void ) ? )
1447-
14481423 func makeAffiliateProgramSetupScreenInitialData( context: AccountContext , peerId: EnginePeer . Id , mode: AffiliateProgramSetupScreenMode ) -> Signal < AffiliateProgramSetupScreenInitialData , NoError >
14491424 func makeAffiliateProgramSetupScreen( context: AccountContext , initialData: AffiliateProgramSetupScreenInitialData ) -> ViewController
14501425 func makeAffiliateProgramJoinScreen( context: AccountContext , sourcePeer: EnginePeer , commissionPermille: Int32 , programDuration: Int32 ? , revenuePerUser: Double , mode: JoinAffiliateProgramScreenMode ) -> ViewController
1451-
14521426 func makeJoinSubjectScreen( context: AccountContext , mode: JoinSubjectScreenMode ) -> ViewController
1453-
14541427 func makeOldChannelsController( context: AccountContext , updatedPresentationData: ( initial: PresentationData , signal: Signal < PresentationData , NoError > ) ? , intent: OldChannelsControllerIntent , completed: @escaping ( Bool ) -> Void ) -> ViewController
1455-
14561428 func makeGalleryController( context: AccountContext , source: GalleryControllerItemSource , streamSingleVideo: Bool , isPreview: Bool ) -> ViewController
1457-
14581429 func makeAccountFreezeInfoScreen( context: AccountContext ) -> ViewController
14591430 func makeSendInviteLinkScreen( context: AccountContext , subject: SendInviteLinkScreenSubject , peers: [ TelegramForbiddenInvitePeer ] , theme: PresentationTheme ? ) -> ViewController
1460-
1431+
14611432 @available ( iOS 13 . 0 , * )
14621433 func makePostSuggestionsSettingsScreen( context: AccountContext , peerId: EnginePeer . Id ) async -> ViewController
14631434
0 commit comments