Telegram-iOS/submodules/TelegramUI/Components/Chat
isaac 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
..
AccessoryPanelNode
ChatAgeRestrictionAlertController Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ChatAvatarNavigationNode Various fixes 2026-04-23 01:26:13 +02:00
ChatBotInfoItem Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ChatButtonKeyboardInputNode Various improvements 2026-01-30 23:53:55 +08:00
ChatChannelSubscriberInputPanelNode Various improvements 2026-04-18 08:41:08 +02:00
ChatContextResultPeekContent Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ChatEmptyNode Various improvements 2026-04-24 04:55:22 +02:00
ChatHistoryEntry Various improvements 2026-04-22 00:32:34 +04:00
ChatHistorySearchContainerNode Various fixes 2026-03-26 13:58:50 +01:00
ChatInlineSearchResultsListComponent Various improvements 2026-04-03 22:15:42 +08:00
ChatInputAccessoryPanel
ChatInputAutocompletePanel
ChatInputContextPanelNode
ChatInputMessageAccessoryPanel Various fixes 2026-04-27 03:07:38 +02:00
ChatInputPanelNode Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ChatInputTextNode Various improvements 2026-02-11 22:04:54 +04:00
ChatInstantVideoMessageDurationNode
ChatLoadingNode
ChatMediaInputStickerGridItem
ChatMessageActionBubbleContentNode
ChatMessageActionButtonsNode Update colors 2026-02-01 01:51:31 +08:00
ChatMessageAnimatedStickerItemNode Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04:00
ChatMessageAttachedContentButtonNode
ChatMessageAttachedContentNode Various improvements 2026-04-28 00:44:54 +04:00
ChatMessageBirthdateSuggestionContentNode Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ChatMessageBubbleContentNode Rich bubble: scrollToAnchor + getAnchorRect 2026-05-02 00:36:34 +02:00
ChatMessageBubbleItemNode Rich bubble: scrollToAnchor + getAnchorRect 2026-05-02 00:36:34 +02:00
ChatMessageCallBubbleContentNode
ChatMessageCommentFooterContentNode
ChatMessageContactBubbleContentNode
ChatMessageDateAndStatusNode Update API 2026-02-10 12:58:04 +04:00
ChatMessageDeliveryFailedNode
ChatMessageDisableCopyProtectionBubbleContentNode Update localization 2026-02-24 19:33:42 +04:00
ChatMessageEventLogPreviousDescriptionContentNode
ChatMessageEventLogPreviousLinkContentNode
ChatMessageEventLogPreviousMessageContentNode
ChatMessageFactCheckBubbleContentNode Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ChatMessageFileBubbleContentNode Improve animations 2026-04-30 12:56:55 +04:00
ChatMessageForwardInfoNode
ChatMessageGameBubbleContentNode
ChatMessageGiftBubbleContentNode Improve animations 2026-04-30 12:56:55 +04:00
ChatMessageGiftOfferBubbleContentNode Various fixes 2025-12-11 21:32:44 +04:00
ChatMessageGiveawayBubbleContentNode Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ChatMessageInstantVideoBubbleContentNode Improve animations 2026-04-30 12:56:55 +04:00
ChatMessageInstantVideoItemNode [WIP] Polls 2026-03-16 18:07:12 +01:00
ChatMessageInteractiveFileNode Various fixes 2026-04-27 03:07:38 +02:00
ChatMessageInteractiveInstantVideoNode Various fixes 2026-04-27 03:07:38 +02:00
ChatMessageInteractiveMediaNode Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
ChatMessageInvoiceBubbleContentNode
ChatMessageItem
ChatMessageItemCommon Visual improvements 2026-05-02 00:36:33 +02:00
ChatMessageItemImpl Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ChatMessageItemView Visual improvements 2026-05-02 00:36:33 +02:00
ChatMessageJoinedChannelBubbleContentNode Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
ChatMessageMapBubbleContentNode Improve animations 2026-04-30 12:56:55 +04:00
ChatMessageMediaBubbleContentNode Postbox -> TelegramEngine wave 21: completedResourcePath facade + consumer sweep 2026-04-21 03:19:30 +04:00
ChatMessageNotificationItem Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep 2026-04-19 23:46:13 +02:00
ChatMessagePaymentAlertController Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ChatMessagePollBubbleContentNode Poll improvements 2026-04-30 15:36:13 +02:00
ChatMessageProfilePhotoSuggestionContentNode
ChatMessageReactionsFooterContentNode
ChatMessageReplyInfoNode Various fixes 2026-04-14 03:33:34 +02:00
ChatMessageRestrictedBubbleContentNode Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ChatMessageRichDataBubbleContentNode Rich bubble: text selection in context-preview mode 2026-05-02 00:36:35 +02:00
ChatMessageSelectionInputPanelNode Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ChatMessageSelectionNode
ChatMessageShareButton Various improvements 2025-12-29 10:05:51 +04:00
ChatMessageStarsMediaInfoNode
ChatMessageStickerItemNode [WIP] Polls 2026-03-16 18:07:12 +01:00
ChatMessageStoryMentionContentNode
ChatMessageSuggestedPostInfoNode Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ChatMessageSwipeToReplyNode
ChatMessageTextBubbleContentNode Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ChatMessageThreadInfoNode
ChatMessageTodoBubbleContentNode Various improvements 2026-04-22 23:03:51 +02:00
ChatMessageTransitionNode
ChatMessageUnlockMediaNode
ChatMessageUnsupportedBubbleContentNode Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ChatMessageWallpaperBubbleContentNode
ChatMessageWebpageBubbleContentNode Improve animations 2026-04-30 12:56:55 +04:00
ChatNavigationButton
ChatNewThreadInfoItem Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ChatOverscrollControl Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ChatPanelsComponent Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ChatQrCodeScreen Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
ChatRankInfoScreen Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ChatRecentActionsController Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ChatRecordingPreviewInputPanelNode Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ChatRecordingViewOnceButtonNode Glass 2026-01-25 00:31:18 +08:00
ChatSearchNavigationContentNode Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ChatSendAsContextMenu Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ChatSendAudioMessageContextPreview Rich bubble: scrollToAnchor + getAnchorRect 2026-05-02 00:36:34 +02:00
ChatSendStarsScreen Postbox -> TelegramEngine waves 37-43 + wave 44 design/plan (squashed) 2026-04-24 23:19:43 +04:00
ChatShareMessageTagView Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ChatSideTopicsPanel Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ChatSwipeToReplyRecognizer
ChatTextInputActionButtonsNode Various improvements 2026-04-28 16:58:04 +04:00
ChatTextInputAudioRecordingCancelIndicator
ChatTextInputAudioRecordingTimeNode
ChatTextInputPanelNode Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ChatTextInputSlowmodePlaceholderNode
ChatUserInfoItem Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
EditableTokenListNode Glass 2026-01-25 00:31:18 +08:00
FactCheckAlertController Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ForwardAccessoryPanelNode Alerts 2025-12-22 23:28:04 +04:00
InstantVideoRadialStatusNode
ManagedDiceAnimationNode Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04:00
MergedAvatarsNode Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
MessageHaptics
MessageInlineBlockBackgroundView Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
MessageQuoteComponent
PollBubbleTimerNode [WIP] Polls 2026-03-17 11:12:58 +01:00
QuickShareScreen Improve quick share toast 2026-04-30 12:39:54 +02:00
ReplyAccessoryPanelNode Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
SavedTagNameAlertController Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ShimmeringLinkNode Various improvements 2026-02-19 21:53:26 +04:00
SuggestPostAccessoryPanelNode Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
TopMessageReactions Various improvements 2026-04-28 14:31:17 +02:00