mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-06-20 18:24:43 +00:00
c3ab3ff218
Thread the chat list's animated transition through InstantPageV2View.update so reused-item frame changes animate: the toggled details view's own frame-height (clipsToBounds) clip-reveals/clip-hides its body, sibling items below slide, and the chevron rotates — all on the one transition the bubble already drives for its outer height. On expand the body is added up-front; on collapse it is kept and torn down in finalizePendingCollapse(), called from the completion of the frame-shrink (clip) animation that hides it. Drop the forced scroll-to-center on toggle so the bubble grows in place. Also render the chevron as a UIImageView with a template image + tintColor (the message's primary text color) instead of baking the tint into a CALayer's cgImage contents, which dropped the color and rendered it black. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>