Skip to content

Commit 772c2ec

Browse files
committed
Fix PeerInfoPaneContainerNode tuple destructure after OLED params
currentParams gained useOledCardLayout and cardSideInset; update the 12-slot wildcard pattern to 14 elements. Co-authored-by: D3C0Y <decoder-dev@users.noreply.github.com>
1 parent f4b8f44 commit 772c2ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎submodules/TelegramUI/Components/PeerInfo/PeerInfoScreen/Sources/PeerInfoPaneContainerNode.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ final class PeerInfoPaneContainerNode: ASDisplayNode, ASGestureRecognizerDelegat
12101210
return
12111211
}
12121212
pane.isAnimatingOut = false
1213-
if let (_, _, _, _, _, _, _, _, data, _, _, _) = strongSelf.currentParams {
1213+
if let (_, _, _, _, _, _, _, _, data, _, _, _, _, _) = strongSelf.currentParams {
12141214
if let availablePanes = data?.availablePanes, let currentPaneKey = strongSelf.currentPaneKey, let currentIndex = availablePanes.firstIndex(of: currentPaneKey), let paneIndex = availablePanes.firstIndex(of: key), abs(paneIndex - currentIndex) <= 1 {
12151215
} else {
12161216
if let pane = strongSelf.currentPanes.removeValue(forKey: key) {

0 commit comments

Comments
 (0)