 isaacandClaude Opus 4.7
|
69bfc65da7
|
Postbox refactor waves 138–276: 168-commit squash
Consolidates 137 wave commits + 31 supporting commits (CLAUDE.md bump,
typealias additions, AnyObject→EngineMedia restoration) into one squashed
commit. Migrates dozens of consumer-side public APIs, struct fields,
protocol methods, and enum payloads from Postbox protocols/structs to
TelegramEngine engine wrappers and typealiases. Drops `import Postbox`
from many files. Adds new TelegramCore typealiases and one
TelegramEngineUnauthorized facade.
Notable changes by category:
**TelegramCore typealias additions** (rule 2 — narrow utility typealiases):
- EngineChatListIndex, EngineTempBoxFile, EngineItemCollectionItemIndex,
EngineItemCollectionViewEntryIndex, EngineValueBoxEncryptionParameters,
EngineMessageAndThreadId, EnginePeerStoryStats, EngineMessageHistoryAnchorIndex,
EngineChatListTotalUnreadStateCategory, EngineChatListTotalUnreadStateStats,
EnginePeerSummaryCounterTags, EngineChatListTotalUnreadState,
EngineItemCacheEntryId, EngineHashFunctions,
EngineCachedMediaResourceRepresentationResult,
EngineMediaResourceDataFetchResult, EngineMediaResourceDataFetchError,
EngineMediaResourceStatus, EngineCachedPeerData
**TelegramCore engine extensions/forwarders**:
- EngineMessage.engineMedia, EngineMessage.enginePeers,
EngineMessage.adAttribute, EngineMessage.effectivelyIncoming
- engineFileSize forwarder
- TelegramEngine.Resources.clearCachedMediaResources(mediaResourceIds: Set<EngineMediaResource.Id>)
- TelegramEngine.Resources.fetchStatus(id:resourceSize:)
- TelegramEngineUnauthorized.UnauthorizedResources facade with storeResourceData
**Public API/struct migrations to engine types**:
- ChatAvailableMessageActions.banAuthor/banAuthors → EnginePeer?/[EnginePeer]
- WebSessionsContextState.peers → [EnginePeer.Id: EnginePeer]
- CacheUsageStats.peers → [EnginePeer.Id: EnginePeer]
- PeerCommand.peer → EnginePeer
- PeerInfoControllerMode.calls(messages:) → [EngineMessage]
- CallControllerNodeProtocol.updatePeer → EnginePeer params
- ChatHistoryListNode.messageInCurrentHistoryView (and 4 variants) → EngineMessage?
- ChatHistorySearchContainerNode.messageForGallery → EngineMessage?
- PeerInfoPaneNode.findLoadedMessage / ensureMessageIsVisible /
transitionNodeForGallery → engine-typed
- GalleryHiddenMediaTarget.getTransitionInfo /
GalleryHiddenMediaManager.findTarget → engine-typed
- ChatPanelInterfaceInteraction.presentReactionDeletionOptions /
presentBan*MessageOptions → EnginePeer
- DrawingMessageRenderer.messages → [EngineMessage]
- ChatVideoGalleryItemScrubberView.setFetchStatusSignal →
EngineMediaResource.FetchStatus
- ChannelDiscussionGroupActionSheetItem.peer, VoiceChatPeerEntry.peer,
VoiceChatFullscreenParticipantItem.peer, MediaStreamComponent.chatPeer,
MediaStreamVideoComponent.callPeer, ChatMessageContactBubbleContentNode.contactPeer,
ChatMessageForwardInfoNode.peer, ChatMessageCommentFooterContentNode.replyPeers,
ChatReportPeerTitlePanelNode.peer, ChatMessageActionUrlAuthController.bot,
PeerMediaCollectionInterfaceState.peer, ChatMessageCallBubbleContentNode.peopleAvatars,
ChatLoadingNode.renderedPeer (→ EngineRenderedPeer) — all to engine types
**Wave-71-shadow stored-field migrations** (Postbox Peer/Message → Engine wrapper):
- LegacyCallControllerNode.peer
- CallStatusBarNode.currentPeer
**Dead-code / dead-field removals**:
- CallController.peer, CallControllerNodeV2.account,
ContactMultiselectionController PeerNameIndex fields,
preparedChatListNodeViewTransition account: Account param,
FetchResource.swift entirely (unused function)
**Module-level Postbox import drops**: 30+ files including TelegramRootController,
EditStories, GiftViewScreen, AnimatedStickerUtils, FetchPhotoLibraryImageResource,
PeerInfoGiftsPaneNode, PeerInfoPaneContainerNode, PresentAddMembers,
PeerInfoProfileItems, ChatControllerAdminBanUsers, PresentationData typealiases,
DefaultDayPresentationTheme, ChatListViewTransition, GalleryHiddenMediaManager,
RecentSessionsController, GifContext, AuthorizationSequenceController,
PeerInfoHeaderEditingContentNode, PeerInfoHeaderNode,
PeerAllowedReactionListController, CallControllerNodeV2, and 6 PeerInfo pane files.
**AnyObject restoration**: rule 8 added (never substitute Postbox protocols
with Any/AnyObject) — undid previous AnyObject substitutions in waves 141/143
back to EngineMedia.
Doc maintenance: CLAUDE.md updated to reflect new typealiases and forwarders.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-05 00:44:27 +02:00 |
|
 isaacandClaude 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
|
a0e96582dd
|
Update API [skip ci]
|
2025-09-19 12:20:21 +04:00 |
|
Ilya Laktyushin
|
72c58813a8
|
Various improvements
|
2025-08-01 23:25:24 +02:00 |
|
Isaac
|
b625243040
|
Various improvements
|
2025-07-29 15:48:11 +02:00 |
|
Ilya Laktyushin
|
80cd8f7b32
|
Various improvements
|
2025-03-11 06:49:43 +04:00 |
|
Ilya Laktyushin
|
d2deea0ea2
|
Various fixes
|
2024-09-03 15:48:15 +04:00 |
|
Ilya Laktyushin
|
32e6629538
|
Various improvements
|
2024-09-02 17:19:08 +04:00 |
|
Ilya Laktyushin
|
0d1366e5cc
|
Various improvements
|
2024-08-29 02:26:16 +04:00 |
|
Ilya Laktyushin
|
7aaebe5d48
|
Stars giveaways
|
2024-08-27 20:42:47 +04:00 |
|
Ilya Laktyushin
|
5941becc33
|
Stars giveaways [skip ci]
|
2024-08-23 18:44:16 +04:00 |
|
Isaac
|
8af8de7096
|
Reaction experiments
|
2024-06-28 19:36:15 +02:00 |
|
Isaac
|
16faaa4575
|
[WIP] Send message effects
|
2024-05-03 22:56:50 +04:00 |
|
Isaac
|
efae3b90a7
|
Support Xcode 15.3
|
2024-04-02 19:16:00 +04:00 |
|
Ilya Laktyushin
|
59c65198de
|
Various fixes
|
2024-02-12 17:23:30 -04:00 |
|
Ilya Laktyushin
|
b938726fb8
|
Group boosts
|
2024-02-09 01:05:32 +04:00 |
|
Isaac
|
3fe8232c6e
|
Fix group reactions and tag filtering
|
2024-02-07 23:08:10 +04:00 |
|
Ilya Laktyushin
|
4626994d99
|
Group boosts
|
2024-02-06 19:25:41 +04:00 |
|
Ilya Laktyushin
|
cce393a28a
|
Merge commit 'b909d1bea021e1c9c86626981a189d715dfffad5'
|
2024-02-06 17:33:38 +04:00 |
|
Isaac
|
bd4a534097
|
Various improvements
|
2024-02-02 14:32:13 +01:00 |
|
Ilya Laktyushin
|
1b2b7dc403
|
Group boosts
|
2024-02-01 12:29:07 +04:00 |
|
Ilya Laktyushin
|
fd01d8d45f
|
Merge branch 'beta'
|
2024-01-28 23:48:48 +04:00 |
|
Ilya Laktyushin
|
089ef27b69
|
Tune contact bubble button insets
|
2024-01-28 23:30:03 +04:00 |
|
Isaac
|
953e1598f7
|
[WIP] Release changes
|
2024-01-26 15:33:01 +01:00 |
|
Isaac
|
0cab0ca678
|
[WIP] Saved messages
|
2024-01-23 17:52:21 +01:00 |
|
Isaac
|
d1493c4abd
|
[WIP] Tags
|
2024-01-19 22:23:10 +04:00 |
|
Isaac
|
52334868ad
|
Fix isTags
|
2024-01-06 01:02:11 +04:00 |
|
Isaac
|
fb517e49c9
|
[WIP] Privacy update
|
2024-01-05 10:55:59 +04:00 |
|
Isaac
|
0308118446
|
[WIP] Tags
|
2024-01-02 23:15:00 +04:00 |
|
Ilya Laktyushin
|
ca31e5eac8
|
Improve giveaway localization
|
2023-12-23 21:40:24 +04:00 |
|
Ilya Laktyushin
|
4a4917f704
|
Various fixes
|
2023-12-20 20:22:11 +04:00 |
|
Ilya Laktyushin
|
7f0aff80f0
|
Various improvements
|
2023-12-17 21:22:01 +04:00 |
|
Ilya Laktyushin
|
8f51eec89b
|
Various improvements
|
2023-12-17 14:07:31 +04:00 |
|
Ilya Laktyushin
|
7d45c4c9d0
|
Various improvements
|
2023-12-16 15:57:24 +04:00 |
|
Ilya Laktyushin
|
b0358c28e8
|
Various giveaway fixes
|
2023-12-13 17:34:29 +04:00 |
|
Ilya Laktyushin
|
21ae6640b3
|
Various giveaway fixes
|
2023-12-13 17:33:04 +04:00 |
|
Ilya Laktyushin
|
ef28f034d8
|
Various improvements
|
2023-12-13 01:00:55 +04:00 |
|
Ilya Laktyushin
|
44b0464161
|
Update API [skip ci]
|
2023-12-12 10:25:15 +04:00 |
|
Ilya Laktyushin
|
624f2d8e84
|
Various improvements
|
2023-12-11 14:26:22 +04:00 |
|
Ilya Laktyushin
|
ee8b068355
|
Update API
|
2023-12-06 00:23:48 +04:00 |
|
Ilya Laktyushin
|
d63b07a310
|
Various fixes
|
2023-11-15 19:52:08 +04:00 |
|
Ilya Laktyushin
|
b476910842
|
Various fixes
|
2023-11-07 23:21:17 +04:00 |
|
Ilya Laktyushin
|
68b5a7f6d5
|
Various improvements
|
2023-11-07 14:29:17 +04:00 |
|
Ilya Laktyushin
|
af0ecaf502
|
Various fixes
|
2023-11-06 22:10:19 +04:00 |
|
Ilya Laktyushin
|
848a6aaf79
|
Various fixes
|
2023-11-06 19:28:57 +04:00 |
|
Ilya Laktyushin
|
2179c8318d
|
Opening progress for giveaway and gift link messages
|
2023-11-02 20:29:24 +04:00 |
|
Ilya Laktyushin
|
7bce05ed55
|
Fix bubble content width
|
2023-11-02 18:25:14 +04:00 |
|
Ilya Laktyushin
|
b26c434e61
|
Various fixes
|
2023-10-25 19:04:54 +04:00 |
|
Ilya Laktyushin
|
2511c4a773
|
Update localization
|
2023-10-25 10:50:23 +04:00 |
|
Ilya Laktyushin
|
1e734c72b8
|
Various fixes
|
2023-10-24 15:13:42 +04:00 |
|