Re-implement external sharing to secret chats

This commit is contained in:
Ali 2023-11-06 20:18:59 +04:00
parent 6e60c784b7
commit 21af13cfdb
12 changed files with 565 additions and 102 deletions

View file

@ -971,9 +971,6 @@ public final class ShareController: ViewController {
if self.environment.isMainApp {
useLegacy = true
}
if peerIds.contains(where: { $0.namespace == Namespaces.Peer.SecretChat }) {
useLegacy = true
}
if let currentContext = self.currentContext as? ShareControllerAppAccountContext, let data = currentContext.context.currentAppConfiguration.with({ $0 }).data {
if let _ = data["ios_disable_modern_sharing"] {
useLegacy = true