mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-05 19:28:46 +02:00
openInstantPageMedia builds the gallery from allMedias() filtered to .image / .file. An audio track is an EngineMedia.file (a TelegramMediaFile with an .Audio attribute), so it passed the .file case and appeared as a gallery entry. Audio is enrolled in allMedias() only so the audio player can gather sibling tracks for its playlist (handleOpenAudioTap); it is not visual gallery content. Split the .file case to keep videos/gifs/documents but drop music and voice (!file.isMusic && !file.isVoice). No-op for V1 full-page Instant View (its mediasFromItems never enrolled audio); fixes the V2 rich bubble. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Sources | ||
| BUILD | ||