 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
|
cdc82e4235
|
Update API
|
2025-01-06 16:00:43 +04:00 |
|
Ilya Laktyushin
|
d86112541f
|
Various fixes
|
2024-08-02 18:25:02 +02:00 |
|
Ilya Laktyushin
|
af3d440f5a
|
Fix story link
|
2024-08-02 12:36:22 +02:00 |
|
Ilya Laktyushin
|
1c7834ad57
|
Various improvements
|
2024-07-23 22:01:56 +04:00 |
|
Ilya Laktyushin
|
31ba87fb0f
|
Various improvements
|
2024-07-22 20:43:52 +04:00 |
|
Ilya Laktyushin
|
f4cc9d1aad
|
Story weather display
|
2024-07-18 04:45:10 +04:00 |
|
Ilya Laktyushin
|
4216ee3933
|
Various improvements
|
2024-07-13 18:13:58 +04:00 |
|
Ilya Laktyushin
|
a2348148ff
|
Various improvements
|
2024-06-18 01:06:31 +04:00 |
|
Ilya Laktyushin
|
ad3bed0a9f
|
Various improvements
|
2024-06-17 21:15:41 +04:00 |
|
Ilya Laktyushin
|
c0489e251b
|
Add support for stars withdrawal timeout
|
2024-06-16 15:51:21 +04:00 |
|
Ilya Laktyushin
|
1ae20bd685
|
Various improvements
|
2024-06-15 18:41:19 +04:00 |
|
Isaac
|
26b539041d
|
Fix merge conflicts
|
2024-06-07 15:44:12 +04:00 |
|
Isaac
|
a2bbf58b76
|
Merge commit '1cc27e2a20c8cd889584c327f697d3c8c5c4b8fe'
# Conflicts:
# submodules/AccountContext/Sources/AccountContext.swift
# submodules/TelegramCore/Sources/ApiUtils/StoreMessage_Telegram.swift
# submodules/TelegramCore/Sources/TelegramEngine/Messages/MediaArea.swift
# submodules/TelegramCore/Sources/TelegramEngine/Messages/StoryListContext.swift
# submodules/TelegramUI/Components/PeerInfo/PeerInfoStoryGridScreen/Sources/StorySearchGridScreen.swift
# submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetContainerViewSendMessage.swift
# submodules/TelegramUI/Sources/SharedAccountContext.swift
|
2024-06-07 15:27:36 +04:00 |
|
Isaac
|
571e2164b2
|
Story search
|
2024-06-07 15:22:11 +04:00 |
|
Ilya Laktyushin
|
1cc27e2a20
|
Various improvements
|
2024-06-07 14:07:01 +04:00 |
|
Ilya Laktyushin
|
5470ba80ec
|
Various improvements
|
2024-06-07 09:51:45 +04:00 |
|
Ilya Laktyushin
|
464eb8625f
|
Hashtag search improvements
|
2024-05-22 14:04:37 +04:00 |
|
Ilya Laktyushin
|
ee2b7be5e2
|
[WIP] Stickers editor
|
2024-04-06 19:53:19 +04:00 |
|
Ilya Laktyushin
|
0598c49a89
|
Various improvements
|
2024-04-06 15:01:03 +04:00 |
|
Ilya Laktyushin
|
f1ef6f438a
|
Don't crash on DrawingStickerEntity decoding
|
2024-02-02 19:59:09 +04:00 |
|
Ilya Laktyushin
|
6dcfc09165
|
Message to story sharing improvements
|
2023-12-27 22:27:49 +04:00 |
|
Ilya Laktyushin
|
cc010a4a39
|
Various fixes
|
2023-12-20 23:19:04 +04:00 |
|
Ilya Laktyushin
|
7c435bf03e
|
Various improvements
|
2023-12-20 14:20:11 +04:00 |
|
Ilya Laktyushin
|
3ca419048c
|
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
|
2023-12-19 20:56:31 +04:00 |
|
Ilya Laktyushin
|
7d45c4c9d0
|
Various improvements
|
2023-12-16 15:57:24 +04:00 |
|
Ilya Laktyushin
|
43d5a22830
|
Media editor improvements
|
2023-12-11 14:27:53 +04:00 |
|
Ilya Laktyushin
|
25dcb36761
|
Various improvements
|
2023-11-29 19:28:49 +04:00 |
|
Ilya Laktyushin
|
9cd6344b53
|
Various improvements
|
2023-11-25 14:10:36 +04:00 |
|
Ilya Laktyushin
|
5ecb819963
|
Use modern pipeline for video conversion
|
2023-09-16 12:38:42 +04:00 |
|
Ilya Laktyushin
|
517337de27
|
Fix story reactions dimensions and colors in editor
|
2023-08-30 05:47:15 +04:00 |
|
Ilya Laktyushin
|
d0e9953d28
|
Story reactions improvements
|
2023-08-28 23:56:33 +04:00 |
|
Ilya Laktyushin
|
8968444839
|
Story inline reactions
|
2023-08-27 18:33:30 +04:00 |
|
Ilya Laktyushin
|
db9e286857
|
Update story reactions [skip ci]
|
2023-08-25 20:24:08 +04:00 |
|
Ilya Laktyushin
|
55411b1d06
|
Various improvements
|
2023-08-24 17:56:41 +04:00 |
|
Ilya Laktyushin
|
40c2c1b620
|
Various fixes
|
2023-08-12 19:49:16 +02:00 |
|
Ilya Laktyushin
|
c45ea439c7
|
Colored location stickers
|
2023-08-11 14:23:26 +02:00 |
|
Ilya Laktyushin
|
b71304a3d2
|
GIFs in media editor
Image search in media editor
|
2023-08-07 08:38:02 +02:00 |
|
Ilya Laktyushin
|
74faad7a03
|
Various improvements
|
2023-08-05 15:32:12 +02:00 |
|
Ilya Laktyushin
|
9e18b91f57
|
Various fixes
|
2023-08-01 14:27:45 +02:00 |
|
Ilya Laktyushin
|
6dce0c9c12
|
Various fixes
|
2023-08-01 12:40:02 +02:00 |
|
Ilya Laktyushin
|
92b30ddf23
|
Various fixes
|
2023-08-01 12:31:15 +02:00 |
|
Ilya Laktyushin
|
8805c0b7bd
|
Story locations
|
2023-07-31 20:19:11 +02:00 |
|
Ilya Laktyushin
|
b70586eb28
|
Story location picking
|
2023-07-30 15:01:25 +02:00 |
|
Ilya Laktyushin
|
d88cd4f7c4
|
Various improvements
|
2023-07-15 03:08:32 +02:00 |
|
Ilya Laktyushin
|
5e5f19e6e9
|
Various fixes
|
2023-07-14 04:35:23 +02:00 |
|
Ilya Laktyushin
|
a4297cf1c5
|
Various fixes
|
2023-07-06 21:28:29 +02:00 |
|
Ilya Laktyushin
|
d5ea353b92
|
Don't generate videos for single frame animated stickers
|
2023-07-05 00:34:40 +02:00 |
|
Ilya Laktyushin
|
7ba7fcc760
|
Various improvements
|
2023-07-04 23:45:40 +02:00 |
|