Telegram-iOS/submodules/TelegramCore/Sources/TelegramEngine
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
..
AccountData Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-05-29 09:24:16 +02:00
Auth Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00
Calls Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00
Contacts MediaResource → EngineMediaResource refactor: wave 2 2026-04-17 09:07:54 +02:00
Data Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-05-29 09:24:16 +02:00
HistoryImport Update API 2026-03-08 08:49:21 +01:00
ItemCache Various improvements 2025-03-10 15:32:15 +04:00
ItemCollections Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00
Localization Refactor constructor use sites for types 420-439 to struct pattern 2026-01-18 23:22:34 +08:00
Messages Rich-message media in gallery/shared-media/preview pipelines via Message.effectiveMedia 2026-06-04 23:46:56 +02:00
Notices Various improvements 2025-11-04 14:43:17 +04:00
OrderedLists
Payments Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00
Peers Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-05-29 09:24:16 +02:00
Preferences Temp 2026-03-23 21:33:34 +08:00
Privacy Postbox refactor waves 138–276: 168-commit squash 2026-05-05 00:44:27 +02:00
Resolve Refactor constructor use sites for types 420-439 to struct pattern 2026-01-18 23:22:34 +08:00
Resources Rich-message media in gallery/shared-media/preview pipelines via Message.effectiveMedia 2026-06-04 23:46:56 +02:00
SecureId macos 2026-05-21 20:04:05 +01:00
Stickers Sticker pack improvements 2026-04-28 16:56:02 +04:00
Themes Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00
Utils Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00
TelegramEngine.swift Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00