mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Stories
This commit is contained in:
@@ -38,6 +38,7 @@ import ChatTextLinkEditUI
|
||||
import AttachmentTextInputPanelNode
|
||||
import ChatEntityKeyboardInputNode
|
||||
import HashtagSearchUI
|
||||
import PeerInfoStoryGridScreen
|
||||
|
||||
private final class AccountUserInterfaceInUseContext {
|
||||
let subscribers = Bag<(Bool) -> Void>()
|
||||
@@ -1723,6 +1724,10 @@ public final class SharedAccountContextImpl: SharedAccountContext {
|
||||
return HashtagSearchController(context: context, peer: peer, query: query)
|
||||
}
|
||||
|
||||
public func makeMyStoriesController(context: AccountContext, isArchive: Bool) -> ViewController {
|
||||
return PeerInfoStoryGridScreen(context: context, peerId: context.account.peerId, scope: isArchive ? .archive : .saved)
|
||||
}
|
||||
|
||||
public func makePremiumIntroController(context: AccountContext, source: PremiumIntroSource) -> ViewController {
|
||||
let mappedSource: PremiumSource
|
||||
switch source {
|
||||
|
||||
Reference in New Issue
Block a user