This commit is contained in:
Ali
2023-07-25 01:45:44 +04:00
parent a196a1684b
commit 1fa20fa4a4
28 changed files with 635 additions and 181 deletions

View File

@@ -2425,7 +2425,18 @@ public final class EntityInputView: UIInputView, AttachmentTextInputPanelInputVi
replaceImpl?(controller)
})
replaceImpl = { [weak controller] c in
controller?.replace(with: c)
guard let controller else {
return
}
if controller.navigationController != nil {
controller.replace(with: c)
} else {
controller.dismiss()
if let self {
self.presentController?(c)
}
}
}
strongSelf.presentController?(controller)
}), elevatedLayout: false, animateInAsReplacement: false, action: { _ in return false }))