Telegram-iOS/submodules/ShareController/Sources
isaac 0050cc7a08 Rich-message media in gallery/shared-media/preview pipelines via Message.effectiveMedia
Add Message/EngineMessage.effectiveMedia (= message.media when non-empty, else
richText.instantPage.allMedia()) and route the media-consuming sites through it
so a rich message's instant-page media participates in the same pipelines as
normal message.media: shared-media grids/file-rows, search media grid, gallery
open + item nodes + footer, the peer audio/voice playlist, secret-media preview,
resource-by-id resolution, recent downloads, downloaded-media store, delete-time
resource cleanup, cache-usage stats, the in-chat download manager, and the
context-menu / share actions (Save to Camera Roll, copy image, save audio/music
to files). For normal messages effectiveMedia == message.media, so each swap is
behavior-preserving; rich messages render their own bubble via
ChatMessageRichDataBubbleContentNode (not the text/file bubbles), so those paths
are deliberately untouched, as are the forward path (the attribute travels with
the forward) and the markdown-based rich-edit path. First-media scope for now.

See docs/instantpage-richtext.md for the full architecture + invariants.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 23:46:56 +02:00
..
ShareActionButtonNode.swift [WIP] Polls 2026-03-13 11:04:33 +01:00
ShareContentContainerNode.swift Fragment info 2024-03-08 18:43:18 +04:00
ShareController.swift Rich-message media in gallery/shared-media/preview pipelines via Message.effectiveMedia 2026-06-04 23:46:56 +02:00
ShareControllerNode.swift Various improvements 2026-05-28 16:50:05 +02:00
ShareControllerPeerGridItem.swift Postbox -> TelegramEngine wave 15: SelectablePeerNode stateManager collapse 2026-04-20 20:37:41 +02:00
ShareControllerRecentPeersGridItem.swift Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ShareInputFieldNode.swift Finalize timestamp sharing 2025-01-24 21:03:39 +04:00
ShareLoadingContainerNode.swift Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00
SharePeersContainerNode.swift Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
ShareSearchBarNode.swift Various fixes 2023-02-20 04:30:51 +04:00
ShareSearchContainerNode.swift Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
ShareTopicGridItem.swift Monoforums 2025-05-27 02:59:05 +08:00
ShareTopicsContainerNode.swift Monoforums 2025-05-27 02:59:05 +08:00