Various fixes

This commit is contained in:
Ilya Laktyushin
2024-09-26 17:18:16 +04:00
parent 072c6bc3c4
commit 00516523a4
6 changed files with 46 additions and 18 deletions

View File

@@ -214,7 +214,7 @@ final class GiftSetupScreenComponent: Component {
}
var controllers = navigationController.viewControllers
controllers = controllers.filter { !($0 is GiftSetupScreen) && !($0 is GiftOptionsScreenProtocol) }
controllers = controllers.filter { !($0 is GiftSetupScreen) && !($0 is GiftOptionsScreenProtocol) && !($0 is PeerInfoScreen) && !($0 is ContactSelectionController) }
var foundController = false
for controller in controllers.reversed() {
if let chatController = controller as? ChatController, case .peer(id: component.peerId) = chatController.chatLocation {