Commit graph

82 commits

Author SHA1 Message Date
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
isaac
4107263747 Postbox refactor waves 358-426
Squashed range bf01b4c..a66739c (70 commits) covering 69 waves of the
Postbox -> TelegramEngine consumer migration plus a few BUILD-dep
followups.

Notable additions to TelegramCore in this range:
- Engine typealiases: EngineRawPeerPresence, EngineRawValueBoxKey,
  EngineSimpleDictionary, EngineRawPeerView, EngineRawPostboxViewKey,
  EngineRawPreferencesView, EngineRawMessageHistoryView (+ entry/attrs/
  read-state), EngineMessageIdNamespaces, EngineHistoryViewInputAnchor,
  EngineRawUnreadMessageCountsItem, EngineRawMessageHistorySavedMessages
  IndexView, EngineRawChatInterfaceStateView, EngineRawOrderedItemList
  View, EngineRawMessageHistoryThreadIndexView, EngineRawCombinedRead
  StateView, EngineRawMessageHistoryThreadInfoView, EngineRawBasicPeer
  View, EngineRawCachedPeerDataView, EngineMessageHistoryThreadData,
  EngineViewUpdateType, EngineInitialMessageHistoryData,
  EnginePeerGroupId, EngineChatLocationInput, EngineHistoryViewInputTag.
- Engine data items: Peer.CachedData, ItemCollections.InstalledPackInfos,
  ItemCollections.InstalledPackIds.
- Engine facade: TelegramEngine.ItemCollections.allItems(namespace:).
- Free function: engineAreMediaArraysEqual forwarder.

Net effect: 65+ consumer modules drop "import Postbox"; 131 files
changed (+1386 / -1493). Build green at HEAD.
2026-05-07 07:36:30 +02:00
Ilya Laktyushin
21adc7d061 Various improvements 2026-03-30 02:55:35 +02:00
Ilya Laktyushin
f3c18e1436 Various improvements 2026-03-29 22:18:19 +02:00
Ilya Laktyushin
f160fb99d9 Various improvements 2026-03-29 16:23:09 +02:00
Isaac
e9f62db2c3 Fix selection 2026-03-25 01:13:19 +08:00
Ilya Laktyushin
d63f704472 Move list checkbox to the right 2026-03-24 07:13:46 +01:00
Ilya Laktyushin
8098f24f4e Various improvements 2026-03-22 16:41:22 +01:00
Ilya Laktyushin
66d08c0e1b Various improvements 2026-03-22 13:44:04 +01:00
Ilya Laktyushin
ea4bcd9a46 Various improvements 2026-03-21 09:47:17 +01:00
Ilya Laktyushin
2a55559f82 Various fixes 2026-03-20 15:46:56 +01:00
Ilya Laktyushin
5877f2c20d Various improvements 2025-10-29 17:20:36 +04:00
Ilya Laktyushin
35c9a5d279 Various improvements 2025-10-20 00:46:26 +04:00
Ilya Laktyushin
85092482f3 Various improvements 2025-10-17 17:01:25 +04:00
Ilya Laktyushin
0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00
Ilya Laktyushin
a60a437206 Various improvements 2025-08-22 21:46:07 +04:00
Ilya Laktyushin
0bac271cdb [WIP] Saved music 2025-08-21 09:08:35 +04:00
Ilya Laktyushin
bdaf5f5a02 Various fixes 2025-08-18 17:33:54 +04:00
Ilya Laktyushin
f59abe1689 Various improvements 2025-06-10 22:11:07 +02:00
Isaac
a1de4e39b2 Fix stories in download list 2024-12-06 22:14:31 +08:00
Isaac
9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Ilya Laktyushin
914dbc46f6 Recent actions improvements 2024-04-23 12:01:28 +04:00
Isaac
f259829c8a [WIP] Business 2024-02-20 14:45:25 +04:00
Isaac
0e75f18f14 [WIP] Saved messages 2023-12-25 22:58:09 +04:00
Ali
34e8c54bb0 Stories 2023-06-20 12:26:09 +03:00
Ali
6a548e11a6 Refactoring [skip ci] 2023-04-19 23:47:38 +04:00
Ali
6e3cc4a6e9 Refactoring 2023-04-17 20:21:14 +04:00
Ilya Laktyushin
2e9e017b57 Fix lagging when scrolling through music albums in chats 2023-03-15 14:27:29 +04:00
Ali
41060f0da0 Modernized save to gallery 2023-01-13 21:14:45 +04:00
Ilya Laktyushin
415182b4d2 Cherry-pick various improvements 2023-01-08 01:37:02 +04:00
Ali
614c74b0b0 [WIP] Modern cache 2022-12-17 00:17:31 +04:00
Ali
037996c4cd Fix file message layout 2022-12-02 19:45:37 +04:00
Ilya Laktyushin
01ad3d848f Various fixes 2022-11-10 00:09:15 +04:00
Ilya Laktyushin
9282469231 Various improvements 2022-11-09 18:28:49 +04:00
Ilya Laktyushin
d66e1db6cc Various improvements 2022-11-09 01:30:17 +04:00
Ali
cd6d2a3b9d Emoji improvents 2022-08-02 21:40:15 +04:00
Ilya Laktyushin
71bde57b6a Various Improvements 2022-04-23 05:28:29 +04:00
Ilya Laktyushin
7b8c90fbdc Attachment menu improvements 2022-02-27 04:07:09 +04:00
Ali
970203e0dc Merge commit '1f93128173'
# Conflicts:
#	Telegram/Telegram-iOS/en.lproj/Localizable.strings
2022-02-26 20:45:28 +04:00
Ali
d771cdaeac Download list improvements 2022-02-26 20:44:59 +04:00
Ilya Laktyushin
ec8702ed07 Attachment menu improvements 2022-02-26 17:48:25 +04:00
Ali
b8d96fa0af Merge commit '3ddf3518c5'
# Conflicts:
#	submodules/ListMessageItem/Sources/ListMessageFileItemNode.swift
2022-02-22 22:21:20 +04:00
Ali
8086ea1ecb Download list improvements 2022-02-22 22:08:42 +04:00
Ilya Laktyushin
2dd23729b5 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2022-02-21 10:48:29 +03:00
Ilya Laktyushin
d811f5f160 Attachment menu improvements 2022-02-21 10:11:53 +03:00
Ali
ac8e9a0b9c Download manager improvements 2022-02-18 20:12:38 +04:00
Ali
20748909d1 Download list improvements 2022-02-15 23:40:44 +04:00
Ali
c8bc4b7f12 Initial downloads list implementation 2022-02-11 23:49:38 +04:00
Ali
d72a9079ba Fix play button 2021-10-27 23:10:58 +04:00
Ali
80fe21681e Shared media improvements 2021-10-25 17:00:32 +04:00