Add chat limit screen

This commit is contained in:
Ali
2023-03-30 16:53:09 +04:00
parent 806d3d4ea4
commit ffbc8883e2
2 changed files with 19 additions and 2 deletions

View File

@@ -757,6 +757,10 @@ private final class ChatFolderLinkPreviewScreenComponent: Component {
let limitController = PremiumLimitScreen(context: component.context, subject: .membershipInSharedFolders, count: limit, action: {})
controller.push(limitController)
controller.dismiss()
case let .tooManyChannels(limit, _):
let limitController = PremiumLimitScreen(context: component.context, subject: .chatsPerFolder, count: limit, action: {})
controller.push(limitController)
controller.dismiss()
}
}, completed: { [weak self] in
guard let self, let controller = self.environment?.controller() else {