Telegram-iOS/submodules/TelegramUI
isaac 0d5b051820 InstantPage V2: support nested <details> blocks
A details block nested inside another rendered (title + chevron) but could not
expand: its body is hosted by a fresh InstantPageV2View whose detailsTapped
closure was never wired (only the top-level view's is, by the bubble), so the
nested title's tap hit a nil closure and was dropped. Wire the body view's
detailsTapped to chain through this view's onTitleTapped, which makeItemView
already routes to the owning view's detailsTapped -> the bubble's toggle
handler; this chains up through arbitrary nesting depth.

Also make the bubble's defaultExpanded(forDetailsIndex:) recurse into expanded
bodies so a nested details whose model default is expanded toggles from the
correct state (the flat top-level scan missed nested indices).

Known pre-existing limitation (unchanged): V2 keys expansion state by a flat
DFS index, so expanding a nested details can shift sibling indices.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 15:30:28 +02:00
..
Components InstantPage V2: support nested <details> blocks 2026-06-04 15:30:28 +02:00
Images.xcassets Various fixes 2026-05-31 17:35:32 +02:00
Resources Various fixes 2026-04-28 19:16:08 +02:00
Sounds
Sources Merge commit 'ec72568429' 2026-06-04 01:46:28 +02:00
.gitignore
BUILD Various improvements 2026-05-28 16:50:05 +02:00