Telegram-iOS/submodules/TelegramCore/Sources/Network
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
..
Download.swift Refactor constructor use sites for types 560-579 to struct pattern 2026-01-19 00:40:53 +08:00
FetchedMediaResource.swift Rich-message media in gallery/shared-media/preview pipelines via Message.effectiveMedia 2026-06-04 23:46:56 +02:00
FetchHttpResource.swift Local instant view 2024-08-29 11:44:05 +04:00
FetchV2.swift Refactor constructor use sites for types 560-579 to struct pattern 2026-01-19 00:40:53 +08:00
MultipartFetch.swift Various fixes 2026-03-28 18:27:01 +01:00
MultipartUpload.swift Refactor Api types 120-149 to use struct-wrapped constructors 2026-01-16 03:00:59 +08:00
MultiplexedRequestManager.swift Add back changes 2024-03-15 16:13:38 +04:00
Network.swift Refactor Api types 43-52 to use struct-wrapped constructors 2026-01-16 00:33:37 +08:00
NetworkFrameworkTcpConnectionInterface.swift Stories 2025-11-06 12:53:18 +04:00
NetworkStatsContext.swift Postbox refactor waves 278-356: squash 2026-05-05 14:11:06 +02:00
NetworkType.swift Upgrade to iOS 12 2023-09-23 12:38:29 +04:00
ProxyServersStatuses.swift Refactor SyncCore back into TelegramCore 2021-07-21 21:43:20 +02:00