Telegram-iOS/submodules/TelegramCore/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
..
Account Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-05-29 09:24:16 +02:00
AccountManager Postbox -> TelegramEngine waves 94-102 (squashed) 2026-04-26 02:46:44 +04:00
ApiUtils InstantPage rich messages: index embedded media into shared-media tags 2026-06-04 23:46:16 +02:00
MacOS Refactor constructor use sites for types 480-499 to struct pattern 2026-01-18 23:47:18 +08:00
Network Rich-message media in gallery/shared-media/preview pipelines via Message.effectiveMedia 2026-06-04 23:46:56 +02:00
PendingMessages WIP 2026-05-20 00:33:08 +08:00
SecretChats constTimeIsEqual 2026-02-13 18:13:26 +04:00
Settings Various fixes 2026-05-29 16:46:38 +02:00
State Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-05-29 09:24:16 +02:00
Statistics Update API 2026-04-16 01:18:22 +02:00
SyncCore Rich-message media in gallery/shared-media/preview pipelines via Message.effectiveMedia 2026-06-04 23:46:56 +02:00
TelegramEngine Rich-message media in gallery/shared-media/preview pipelines via Message.effectiveMedia 2026-06-04 23:46:56 +02:00
Utils Rich-message media in gallery/shared-media/preview pipelines via Message.effectiveMedia 2026-06-04 23:46:56 +02:00
Authorization.swift Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00
ForumChannels.swift Postbox -> TelegramEngine wave 16a: move EngineMessageHistoryThread to TelegramCore 2026-04-20 21:26:32 +02:00
LoadedPeer.swift Refactor constructor use sites for types 460-479 to struct pattern 2026-01-18 23:36:22 +08:00
LoadedPeerFromMessage.swift Refactor constructor use sites for types 480-499 to struct pattern 2026-01-18 23:47:18 +08:00
SplitTest.swift Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00
Suggestions.swift Temp 2025-12-02 19:30:48 +08:00
Themes.swift Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00
UpdatePeers.swift Update API 2026-05-24 00:24:21 +04:00
Wallpapers.swift Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00
WebpagePreview.swift Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00