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

@@ -369,7 +369,7 @@ final class GiftOptionsScreenComponent: Component {
}
var controllers = navigationController.viewControllers
controllers = controllers.filter { !($0 is GiftOptionsScreen) }
controllers = controllers.filter { !($0 is GiftOptionsScreen) && !($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 {