mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
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> |
||
|---|---|---|
| .. | ||
| Chat | ||
| AccountContext.swift | ||
| AppDelegate.swift | ||
| ApplicationContext.swift | ||
| ApplicationShortcutItem.swift | ||
| AudioRecordningToneData.swift | ||
| ChatBusinessLinkTitlePanelNode.swift | ||
| ChatController.swift | ||
| ChatControllerAdminBanUsers.swift | ||
| ChatControllerContentData.swift | ||
| ChatControllerDisplayBusinessBotMessageTooltip.swift | ||
| ChatControllerDisplayDiceTooltip.swift | ||
| ChatControllerEditChat.swift | ||
| ChatControllerForwardMessages.swift | ||
| ChatControllerKeyShortcuts.swift | ||
| ChatControllerNode.swift | ||
| ChatControllerOpenAttachmentMenu.swift | ||
| ChatControllerOpenCalendarSearch.swift | ||
| ChatControllerOpenMessageReactionContextMenu.swift | ||
| ChatControllerOpenMessageReplies.swift | ||
| ChatControllerOpenMessageShareMenu.swift | ||
| ChatControllerRemoveAd.swift | ||
| ChatControllerScrollToPointInHistory.swift | ||
| ChatControllerTitlePanelNodeContainer.swift | ||
| ChatControllerUpdateSearch.swift | ||
| ChatHistoryEntriesForView.swift | ||
| ChatHistoryListNode.swift | ||
| ChatHistoryNavigationButtonNode.swift | ||
| ChatHistoryNavigationButtons.swift | ||
| ChatHistoryNavigationStack.swift | ||
| ChatHistoryNode.swift | ||
| ChatHistoryViewForLocation.swift | ||
| ChatInterfaceInputContextPanels.swift | ||
| ChatInterfaceInputContexts.swift | ||
| ChatInterfaceInputNodes.swift | ||
| ChatInterfaceStateAccessoryPanels.swift | ||
| ChatInterfaceStateContextMenus.swift | ||
| ChatInterfaceStateContextQueries.swift | ||
| ChatInterfaceStateInputPanels.swift | ||
| ChatInterfaceStateNavigationButtons.swift | ||
| ChatInterfaceTitlePanelNodes.swift | ||
| ChatInviteRequestsTitlePanelNode.swift | ||
| ChatLinkPreview.swift | ||
| ChatManagingBotTitlePanelNode.swift | ||
| ChatMessageActionSheetController.swift | ||
| ChatMessageActionSheetControllerNode.swift | ||
| ChatMessageActionUrlAuthController.swift | ||
| ChatMessageContextControllerContentSource.swift | ||
| ChatMessageReportInputPanelNode.swift | ||
| ChatMessageThrottledProcessingManager.swift | ||
| ChatMessageTransitionNode.swift | ||
| ChatOverlayNavigationBar.swift | ||
| ChatPinnedMessageTitlePanelNode.swift | ||
| ChatPremiumRequiredInputPanelNode.swift | ||
| ChatReportPeerTitlePanelNode.swift | ||
| ChatRequestInProgressTitlePanelNode.swift | ||
| ChatRestrictedInputPanelNode.swift | ||
| ChatSearchResultsContollerNode.swift | ||
| ChatSearchResultsController.swift | ||
| ChatSearchState.swift | ||
| ChatSearchTitleAccessoryPanelNode.swift | ||
| ChatSecretAutoremoveTimerActionSheet.swift | ||
| ChatSlowmodeHintController.swift | ||
| ChatStatusChecksTooltipContentNode.swift | ||
| ChatTagSearchInputPanelNode.swift | ||
| ChatToastAlertPanelNode.swift | ||
| ChatUnblockInputPanelNode.swift | ||
| ChatVerifiedPeerTitlePanelNode.swift | ||
| CheckDiskSpace.swift | ||
| ClearNotificationsManager.swift | ||
| CommandChatInputContextPanelNode.swift | ||
| CommandChatInputPanelItem.swift | ||
| CommandMenuChatInputContextPanelNode.swift | ||
| CommandMenuChatInputPanelItem.swift | ||
| ComposeController.swift | ||
| ComposeControllerNode.swift | ||
| ContactMultiselectionController.swift | ||
| ContactMultiselectionControllerNode.swift | ||
| ContactSelectionController.swift | ||
| ContactSelectionControllerNode.swift | ||
| ConvertToWebP.swift | ||
| CreateChannelController.swift | ||
| CreateGroupController.swift | ||
| CreatePeerAvatarSetup.swift | ||
| DeleteChatInputPanelNode.swift | ||
| DeviceContactDataManager.swift | ||
| DisabledContextResultsChatInputContextPanelNode.swift | ||
| DocumentPreviewController.swift | ||
| EditAccessoryPanelNode.swift | ||
| EmojisChatInputContextPanelNode.swift | ||
| EmojisChatInputPanelItem.swift | ||
| FetchCachedRepresentations.swift | ||
| FetchResource.swift | ||
| GalleryHiddenMediaManager.swift | ||
| HashtagChatInputContextPanelNode.swift | ||
| HashtagChatInputPanelItem.swift | ||
| HorizontalListContextResultsChatInputContextPanelNode.swift | ||
| HorizontalListContextResultsChatInputPanelItem.swift | ||
| HorizontalStickerGridItem.swift | ||
| HorizontalStickersChatContextPanelNode.swift | ||
| IconButtonNode.swift | ||
| ID3ArtworkReader.swift | ||
| InChatPrefetchManager.swift | ||
| Info.plist | ||
| InlineReactionSearchPanel.swift | ||
| LargeEmojiActionSheetItem.swift | ||
| LegacyDataImportSplash.swift | ||
| ListMessagePlaybackOverlayNode.swift | ||
| LockedWindowCoveringView.swift | ||
| MakeTempAccountContext.swift | ||
| ManagedAudioRecorder.swift | ||
| MediaManager.swift | ||
| MentionChatInputContextPanelNode.swift | ||
| MentionChatInputPanelItem.swift | ||
| MusicListenTracker.swift | ||
| NavigateToChatController.swift | ||
| NotificationContainerController.swift | ||
| NotificationContainerControllerNode.swift | ||
| NotificationContentContext.swift | ||
| NotificationItemContainerNode.swift | ||
| OpenAddContact.swift | ||
| OpenChatMessage.swift | ||
| OpenResolvedUrl.swift | ||
| OpenUrl.swift | ||
| OverlayAudioPlayerController.swift | ||
| OverlayAudioPlayerControllerNode.swift | ||
| OverlayAudioPlayerControlsNode.swift | ||
| OverlayInstantVideoDecoration.swift | ||
| OverlayInstantVideoNode.swift | ||
| OverlayMediaController.swift | ||
| OverlayMediaControllerNode.swift | ||
| PeerMediaCollectionInterfaceState.swift | ||
| PeerMediaCollectionInterfaceStateButtons.swift | ||
| PeerMediaCollectionSectionsNode.swift | ||
| PollResultsController.swift | ||
| PrefetchManager.swift | ||
| PreparedChatHistoryViewTransition.swift | ||
| ProcessedPeerRestrictionText.swift | ||
| RadialProgressNode.swift | ||
| RadialTimeoutNode.swift | ||
| SaveMediaToFiles.swift | ||
| SecretChatHandshakeStatusInputPanelNode.swift | ||
| ServiceSoundManager.swift | ||
| SharedAccountContext.swift | ||
| SharedMediaPlayer.swift | ||
| SharedNotificationManager.swift | ||
| SharedVideoContextManager.swift | ||
| SharedWakeupManager.swift | ||
| SpotlightContacts.swift | ||
| StoreDownloadedMedia.swift | ||
| SuppressContactsWarning.swift | ||
| TelegramRootController.swift | ||
| TextLinkHandling.swift | ||
| ThemeUpdateManager.swift | ||
| TonePlayer.swift | ||
| TransformOutgoingMessageMedia.swift | ||
| VerticalListContextResultsChatInputContextPanelNode.swift | ||
| VerticalListContextResultsChatInputPanelButtonItem.swift | ||
| VerticalListContextResultsChatInputPanelItem.swift | ||
| WallpaperUploadManager.swift | ||
| Weak.swift | ||
| WebpagePreviewAccessoryPanelNode.swift | ||
| WidgetDataContext.swift | ||