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
isaac and Claude Opus 4.7
e918b353ec
Postbox refactor waves 278-356: squash
...
Squashes 79 sequential refactor waves into a single commit.
Highlights:
- Drop `import Postbox` (and matching `//submodules/Postbox` BUILD deps) from a wide swath of consumer files: ChatList, ChatMessage*BubbleContentNode subclasses, ListMessageNode/ListMessageItem, GalleryData, ChatHistorySearchContainerNode, ChatPanelInterfaceInteraction, ChatControllerInteraction, ChatMessageStickerItemNode, ChatMessageReplyInfoNode, ChatMessageInstantVideoItemNode, ChatPresentationInterfaceState, BrowserMarkdown/Readability, MediaResources, LocalMediaResources, ICloudResources, FetchManager, ShareController, OpenChatMessage, GalleryController, GroupStickerSearchContainerNode, GroupStickerPackCurrentItem, ChatPinnedMessageTitlePanelNode, OverlayAudioPlayerController, PresentationThemeSettings, StatisticsUI/StoryIconNode, TextFormat/StringWithAppliedEntities, GalleryUI/VideoAdComponent, StickerPackPreviewUI, WallpaperPreviewMedia, WallpaperResources, YoutubeEmbedImplementation, InstantPageExternalMediaResource, PlatformRestrictionMatching, TelegramUIDeclareEncodables, ChatListNode/ChatListSearchContainerNode.
- Add `TelegramEngine` facades: `Themes.wallpapers`, `Themes.themes`, `AccountData.addAppLogEvent`.
- Add `EngineMessageHistoryEntryLocation` wrapper.
- Add `EngineRaw*` escape-hatch typealiases (`EngineRawMessage`, `EngineRawPeer`, `EngineRawMedia`, `EngineRawMediaResource`, `EngineRawMediaResourceData`, `EngineRawItemCollectionItem`, `EngineRawItemCollectionInfo`) and `engineDeclareEncodable` forwarder.
- Drop unused `account:`/`postbox:`/`network:` parameters from several public functions and delete the dead overloads/types/functions left over: `automaticThemeShouldSwitchNow`, `cancelFreeMediaFileInteractiveFetch`, `legacyEnqueueVideoMessage`, `TelegramMediaFileReference`, plus assorted dead public TelegramCore/AccountContext SecureId entry points.
- Delete entire dead modules: `LegacyDataImport`, `TonBinding`, `SpotlightSupport`, `SvgRendering`, third-party `AppCenter`/`VectorPlus`/`SwiftColor`/`SwiftSVG`.
- Drop orphan `//submodules/Postbox` BUILD deps across 3 cleanup rounds.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-05 14:11:06 +02:00
isaac
631df15f40
Refactoring
2026-05-03 10:31:22 +02:00
isaac and Claude Opus 4.7
86d1456552
Postbox -> TelegramEngine waves 107-137 (squashed)
...
31 waves of consumer-side migration from `import Postbox` to TelegramEngine
typealiases. Net: 173 import drops + 39 BUILD-dep drops + 1 new typealias
(`EngineStoryId = StoryId`, wave 113).
Wave shapes used:
- Orphan-import sweeps (107, 108, 128): drop `import Postbox` from files
whose only Postbox-symbol reference was the import line itself, then
resolve build failures. Methodology requires token-level (`grep -oE`)
filtering, not line-level, to avoid masking real Postbox usage on lines
that also contain `Namespaces.X` references.
- Identifier-swap mini-waves (109-127, 129-134, 136-137): rename
Postbox-typealiased identifiers to engine equivalents
(PeerId -> EnginePeer.Id, MessageId -> EngineMessage.Id,
MediaId -> EngineMedia.Id, MessageIndex -> EngineMessage.Index,
StoryId -> EngineStoryId, ItemCollectionId -> EngineItemCollectionId,
PreferencesEntry -> EnginePreferencesEntry,
FetchResourceSourceType/Error -> EngineFetchResourceSourceType/Error,
MemoryBuffer -> EngineMemoryBuffer, MessageTags -> EngineMessage.Tags,
MessageAttribute -> EngineMessage.Attribute,
TempBox -> EngineTempBox).
- Asset-string FP-only orphans (124).
- Typealias addition + drain (113): added `EngineStoryId` typealias to
TelegramCore, then drained 3+11 consumer sites.
Hard blockers identified during these waves (must restore `import Postbox`
when present): MediaResource[A-Za-z]* (any suffix -- the literal
`MediaResource` matches don't catch MediaResourceData/MediaResourceId/etc.),
Postbox/MediaBox/MediaResource raw types, PostboxCoding/PostboxEncoder/
PostboxDecoder, TempBoxFile, ValueBoxKey, PostboxView, combinedView,
HashFunctions, postboxLog, openPostbox, declareEncodable, PeerView,
MessageHistoryView, MessageHistoryThreadData, CachedPeerData, RenderedPeer,
SelectivePrivacyPeer, SimpleDictionary, ItemCollectionInfosView,
ItemCollectionItem, ItemCollectionItemIndex, ItemCollectionViewEntryIndex,
ChatListIndex, ChatListEntrySummaryComponents, CodableEntry,
MessageHistoryThread, MessageHistoryAnchorIndex,
MessageHistoryEntryLocation, PeerStoryStats, PeerNameIndex,
PeerSummaryCounterTags, ChatListTotalUnreadStateCategory/Stats,
arePeersEqual. Protocol-shape blockers: bare `Peer`/`Message`/`Media`
in function signatures, generic args, enum-case payloads, or dict value
types (e.g., `[PeerId: Peer]`, `case messages([Message])`,
`Signal<(Peer?, ...), NoError>`).
`replace_all PeerId -> EnginePeer.Id` is dangerous: mangles compound
names like `failedPeerId`, `ContactListPeerId`, `nextRemoteMediaId`,
`replyToMessageId`. Pre-flight grep `\b[a-z][a-zA-Z]*PeerId\b` and only
replace_all if 0 matches.
Also removes unneeded design/plan docs from a separate (link-highlighting)
feature branch:
- docs/superpowers/plans/2026-05-02-link-highlighting-modern-path-fixes.md
- docs/superpowers/specs/2026-05-02-link-highlighting-modern-path-fixes-design.md
Squashed commits: 6d82c2980d..e6de5d53a3 (59 commits, including
per-wave content commits and per-wave CLAUDE.md bumps).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-03 10:28:50 +02:00
Ilya Laktyushin
d212968040
Update API
2026-04-28 20:35:06 +02:00
isaac
7919556375
Postbox -> TelegramEngine wave 20: shortLivedResourceCachePathPrefix consumer sweep
...
22 call sites across 16 consumer modules migrated to the wave-19 facade:
context.account.postbox.mediaBox.shortLivedResourceCachePathPrefix(resource.id)
->
context.engine.resources.shortLivedResourceCachePathPrefix(id: EngineMediaResource.Id(resource.id))
ItemListStickerPackItem additionally drops the wave-18 `let rawResource` intermediate.
Skipped: MediaEditorComposerEntity.swift:245 (uses local `postbox:` init-param,
not `context.account.postbox`; needs its own wave). No modules become Postbox-free
this wave — each still has other Postbox usage.
2026-04-21 02:27:39 +04:00
Ilya Laktyushin
0df319742a
Update API
2026-04-16 01:18:22 +02:00
Ilya Laktyushin
22df2dbdb9
Various fixes
2026-04-14 03:33:34 +02:00
Ilya Laktyushin
d0d3b064ed
Cherry-pick fixes
2026-04-01 00:59:30 +02:00
Ilya Laktyushin
7ac52c685d
Various fixes
2026-03-29 17:42:24 +02:00
Ilya Laktyushin
ed55943a44
Various improvements
2026-03-27 01:13:38 +01:00
Ilya Laktyushin
6b6ba070c7
Update API
2026-03-26 09:26:15 +01:00
Ilya Laktyushin
8098f24f4e
Various improvements
2026-03-22 16:41:22 +01:00
Isaac
bc7858ad2b
AI editing
2026-03-20 18:23:45 +01:00
Ilya Laktyushin
cbc5a49507
[WIP] Polls
2026-03-13 11:04:33 +01:00
Ilya Laktyushin
dca6b5f145
Various improvements
2026-03-12 13:51:27 +01:00
Ilya Laktyushin
e279f224a1
Various improvements
2026-03-06 13:20:49 +01:00
Ilya Laktyushin
8005514986
Various fixes
2026-02-27 18:52:13 +04:00
Ilya Laktyushin
e12e096919
Various fixes
2026-02-27 00:53:51 +04:00
Ilya Laktyushin
aec6a54b5d
Update localization
2026-02-24 19:12:54 +04:00
Ilya Laktyushin
2c4c9a9d9b
[WIP] Live photos
2026-02-20 13:28:58 +04:00
Ilya Laktyushin
189d25c32e
Update API
2026-02-10 12:58:04 +04:00
Isaac
93b10b7e11
Fix emoji pack tap
2026-02-03 01:41:59 +08:00
Ilya Laktyushin
bbad57434f
Various fixes
2026-02-02 15:54:43 +04:00
Ilya Laktyushin
0d12dd29ad
Various improvements
2026-01-25 22:17:49 +04:00
Isaac
5e0f332efb
Update
2025-12-30 22:55:11 +08:00
Isaac
586f5039f1
Merge commit '974a2f6caa45c2e901748ce6d113d741bd251a13'
...
# Conflicts:
# submodules/TelegramUI/Components/GlobalControlPanelsContext/Sources/GlobalControlPanelsContext.swift
# submodules/TelegramUI/Components/LiquidLens/Sources/LiquidLensView.swift
# submodules/TelegramUI/Components/TranslateHeaderPanelComponent/Sources/ChatTranslationPanelNode.swift
# submodules/TelegramUI/Sources/ChatControllerNode.swift
2025-12-26 20:34:31 +08:00
Isaac
4a13c3830a
Glass
2025-12-26 20:29:30 +08:00
Ilya Laktyushin
974a2f6caa
Various improvements
2025-12-26 13:34:23 +04:00
Ilya Laktyushin
59f2f7389a
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
2025-12-22 00:48:28 +04:00
Ilya Laktyushin
2edce5ebf2
Alerts
2025-12-22 00:19:11 +04:00
Isaac
4c6b273fe1
Merge commit 'ef5b8537e02f66a33dbdace5d5e30f8d69077f5f'
...
# Conflicts:
# submodules/TelegramUI/Components/LiquidLens/Sources/LiquidLensView.swift
# submodules/TelegramUI/Components/TabBarComponent/Sources/TabBarComponent.swift
2025-12-20 03:05:26 +08:00
Isaac
3486393f99
Glass
2025-12-20 03:02:08 +08:00
Ilya Laktyushin
1a1f08de64
Various improvements
2025-12-17 14:31:54 +04:00
Ilya Laktyushin
28d4e1e171
Various improvements
2025-12-16 20:05:44 +04:00
Isaac
0c3530d8a8
Glass
2025-12-10 00:16:36 +08:00
Isaac
1ee7268488
Glass
2025-12-06 01:28:06 +08:00
Ilya Laktyushin
6a09d2e4e6
Various improvements
2025-12-03 17:59:09 +04:00
Ilya Laktyushin
1496c81082
Various improvements
2025-11-23 11:04:16 +01:00
Ilya Laktyushin
183bc34f79
Various fixes
2025-11-18 17:13:27 +04:00
Ilya Laktyushin
e9a3e599a1
Various improvements
2025-11-13 15:16:41 +04:00
Ilya Laktyushin
9527b2d8be
Various improvements
2025-11-13 07:18:15 +04:00
Ilya Laktyushin
8897deff91
Various improvements
2025-11-04 01:04:57 +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
Isaac
b9b38e5fbf
Various improvements
2025-10-11 00:56:21 +08:00
Isaac
ebcd0557e5
Temp
2025-09-12 10:54:22 +02:00
Ilya Laktyushin
72c58813a8
Various improvements
2025-08-01 23:25:24 +02:00
Isaac
7377b811e1
Various improvements
2025-07-29 13:44:38 +02:00
Ilya Laktyushin
14ee4b56b5
Various improvements
2025-07-28 23:38:23 +02:00