Skip to content

Commit 8dafa70

Browse files
committed
Various fixes
1 parent 887d106 commit 8dafa70

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

submodules/TelegramUI/Components/Gifts/GiftViewScreen/Sources/GiftAuctionBidScreen.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,7 @@ private final class GiftAuctionBidScreenComponent: Component {
20242024
if let navigationController = controller.navigationController as? NavigationController {
20252025
var controllers = navigationController.viewControllers
20262026
controllers = controllers.filter { !($0 is GiftAuctionBidScreen) && !($0 is GiftSetupScreenProtocol) && !($0 is GiftOptionsScreenProtocol) && !($0 is PeerInfoScreen) && !($0 is ContactSelectionController) }
2027-
2027+
20282028
var foundController = false
20292029
for controller in controllers.reversed() {
20302030
if let chatController = controller as? ChatController, case .peer(id: bidPeerId) = chatController.chatLocation {
@@ -2039,6 +2039,12 @@ private final class GiftAuctionBidScreenComponent: Component {
20392039
controllers.append(chatController)
20402040
}
20412041
navigationController.setViewControllers(controllers, animated: true)
2042+
2043+
for controller in controllers {
2044+
if controller is MinimizableController {
2045+
controller.dismiss(animated: true)
2046+
}
2047+
}
20422048
}
20432049
} else {
20442050
self.resetSliderValue()

0 commit comments

Comments
 (0)