 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 |
|
 isaacandClaude Opus 4.7
|
8408e0ae19
|
Postbox -> TelegramEngine waves 27-36
Consumer-sweep, facade-addition, and Peer→EnginePeer migrations:
- Wave 27: preferencesView consumer sweep
- Wave 28: resourceData consumer sweep
- Wave 29: resourceStatus consumer sweep
- Wave 30: _asStatus() bridge cleanup
- Wave 31: unused-import sweep re-run
- Wave 32: resourceStatus residue sweep
- Wave 33: loadedPeerWithId consumer sweep
- Wave 34: FoundPeer.peer Peer -> EnginePeer
- Wave 35: SendAsPeer.peer Peer -> EnginePeer
- Wave 36: ContactListPeer.peer Peer -> EnginePeer
Also includes per-wave specs, implementation plans, outcome logs, and
a CLAUDE.md wave-counter update.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-04-24 11:24:13 +04:00 |
|
Isaac
|
16c630b946
|
Refactoring
|
2026-04-03 15:50:39 +08:00 |
|
Ilya Laktyushin
|
ed55943a44
|
Various improvements
|
2026-03-27 01:13:38 +01:00 |
|
Isaac
|
ca6fdc1629
|
Glass
|
2026-01-25 00:31:18 +08:00 |
|
Isaac
|
2db08cde89
|
Glass
|
2026-01-13 19:21:49 +04:00 |
|
Ilya Laktyushin
|
f7f3b92fa7
|
Various improvements
|
2025-12-23 22:25:44 +04:00 |
|
Isaac
|
9eddffb694
|
Various improvements
|
2025-11-11 18:29:30 +08:00 |
|
Isaac
|
e09b241a9b
|
Updates
|
2025-11-04 00:56:08 +04:00 |
|
Ilya Laktyushin
|
0915a42e64
|
Various improvements
|
2025-10-16 05:30:06 +04:00 |
|
Isaac
|
f468cea13c
|
Update API
|
2025-10-15 17:06:40 +08:00 |
|
Isaac
|
b9b38e5fbf
|
Various improvements
|
2025-10-11 00:56:21 +08:00 |
|
Ilya Laktyushin
|
6de357d643
|
Fix rtl in group call messages
|
2025-10-01 17:52:34 +04:00 |
|
Ilya Laktyushin
|
ecd495e1d4
|
Various fixes
|
2025-09-29 23:27:10 +04:00 |
|
Ilya Laktyushin
|
d126717ec1
|
Various improvements
|
2025-09-29 06:42:09 +04:00 |
|
Ilya Laktyushin
|
6af4878504
|
Various improvements
|
2025-09-28 21:31:54 +04:00 |
|
Ilya Laktyushin
|
c7f607865a
|
Various improvements
|
2025-09-28 20:04:45 +04:00 |
|
Ilya Laktyushin
|
9cd5b06592
|
Various fixes
|
2025-09-28 03:34:50 +04:00 |
|
Ilya Laktyushin
|
4657ac752d
|
Various improvements
|
2025-09-27 01:27:56 +04:00 |
|
Ilya Laktyushin
|
7dfd3b1d87
|
Various improvements
|
2025-09-26 01:30:15 +04:00 |
|
Ilya Laktyushin
|
737f84bb13
|
Various fixes
|
2025-09-25 21:47:46 +04:00 |
|
Ilya Laktyushin
|
98fb98a86e
|
Various improvements
|
2025-09-25 20:09:35 +04:00 |
|
Ilya Laktyushin
|
5d43f14ccb
|
Various improvements
|
2025-09-23 16:04:39 +04:00 |
|
Ilya Laktyushin
|
fb7b93fbdc
|
Various improvements
|
2025-09-22 07:45:25 +04:00 |
|
Ilya Laktyushin
|
4b8d87b05f
|
Merge commit '202274073fa5df7a5fbaa4621e3da054a1a0284b' into call-messages
|
2025-09-17 22:05:40 +04:00 |
|
Ilya Laktyushin
|
cb523192d5
|
Various improvements
|
2025-09-17 20:58:42 +04:00 |
|
Ilya Laktyushin
|
4fc3ba70fc
|
Various fixes
|
2025-09-07 14:57:43 +05:00 |
|
Isaac
|
adbc7bad61
|
Various improvements
|
2025-07-01 14:57:33 +02:00 |
|
Isaac
|
631f942a7f
|
Revert "Improve story video playback"
This reverts commit d4443f9682.
|
2025-05-05 22:20:22 +02:00 |
|
Isaac
|
d4443f9682
|
Improve story video playback
|
2025-04-29 16:44:43 +02:00 |
|
Isaac
|
962ca74101
|
[WIP] Conference calls
|
2025-02-07 15:22:47 +04:00 |
|
Isaac
|
4fb071d91d
|
[WIP] Conference calls
|
2025-01-24 21:03:51 +04:00 |
|
Isaac
|
ad0188f0ed
|
[WIP] Livestream V2
|
2024-12-31 14:03:02 +08:00 |
|
Isaac
|
7e9b1fcc40
|
[WIP] Conference calls
|
2024-12-10 22:17:36 +08:00 |
|
Isaac
|
931e34e1bd
|
Temp
|
2024-11-27 17:37:21 +04:00 |
|
Isaac
|
ca5b6c0f0b
|
[WIP] Video chat UI
|
2024-09-10 19:33:13 +08:00 |
|
Isaac
|
8cc282e2c3
|
Live streaming improvements
|
2024-07-12 18:50:38 +04:00 |
|
Isaac
|
b97b8c369e
|
Live streaming v2
|
2024-07-12 14:16:07 +04:00 |
|
Isaac
|
648c9807bf
|
Live stream updates
|
2024-07-12 13:36:20 +04:00 |
|
Isaac
|
7ee4337cdc
|
Video tests
|
2024-07-12 11:36:44 +04:00 |
|
Isaac
|
9a075fa39e
|
Refactoring
|
2024-06-12 23:04:04 +04:00 |
|
Isaac
|
b90e3563a3
|
Voice chat optimizations (video and mic blob)
|
2024-05-31 18:00:30 +04:00 |
|
Isaac
|
02f04e4c67
|
Fix build
|
2023-12-19 20:25:21 +04:00 |
|
Isaac
|
29728db54a
|
Fix localization
|
2023-12-19 20:11:20 +04:00 |
|
Ali
|
4b8027bbe2
|
Various improvements
|
2023-10-22 01:22:12 +04:00 |
|
Ali
|
b2036845f0
|
Fix more leaks
|
2023-09-29 18:20:53 +04:00 |
|
Ali
|
77a5857a25
|
Sharing refactoring
|
2023-08-15 23:57:04 +04:00 |
|
Ilya Yelagov
|
fc35f2e2fe
|
Cleanup
|
2023-01-08 17:54:44 +04:00 |
|
Ilya Yelagov
|
e84b49e081
|
Cleanup
|
2023-01-08 17:44:35 +04:00 |
|