Various improvements

This commit is contained in:
Ilya Laktyushin
2024-03-20 17:21:16 +04:00
parent b261e67c34
commit 7772e257b2
58 changed files with 2288 additions and 823 deletions

View File

@@ -147,6 +147,10 @@ public final class TelegramRootController: NavigationController, TelegramRootCon
return self.chatListController
}
public func getPrivacySettings() -> Promise<AccountPrivacySettings?>? {
return self.accountSettingsController?.privacySettings
}
override public func containerLayoutUpdated(_ layout: ContainerViewLayout, transition: ContainedViewLayoutTransition) {
let needsRootWallpaperBackgroundNode: Bool
if case .regular = layout.metrics.widthClass {
@@ -222,6 +226,11 @@ public final class TelegramRootController: NavigationController, TelegramRootCon
self.accountSettingsController = accountSettingsController
self.rootTabController = tabBarController
self.pushViewController(tabBarController, animated: false)
// Queue.mainQueue().after(0.3) {
// let controller = self.context.sharedContext.makeStickerEditorScreen(context: self.context, source: nil, transitionArguments: nil, completion: { _ , _ in })
// self.chatListController?.push(controller)
// }
}
public func updateRootControllers(showCallsTab: Bool) {
@@ -659,6 +668,10 @@ public final class TelegramRootController: NavigationController, TelegramRootCon
rootTabController.selectedIndex = index
}
}
public func openBirthdaySetup() {
self.accountSettingsController?.openBirthdaySetup()
}
}
extension MediaEditorScreen.Result: MediaEditorScreenResult {