Telegram-iOS/submodules/TelegramUI/Components/Chat
isaac d1aa0db537 Postbox -> TelegramEngine waves 46-93 (squashed)
Squash of 63 commits spanning waves 46-93 (plus interspersed docs commits)
of the gradual Postbox->TelegramEngine consumer-side migration.

Scope: 139 files changed, 2123 insertions(+), 452 deletions(-).

## Themes by wave-block

**Waves 46-58 — Peer field migrations + facade additions**
Foundational EnginePeer convenience init additions (PeerReference, RenderedPeer,
SelectivePrivacyPeer). Multiple `peer: Peer` field migrations across PeerInfo,
ChatList, and SettingsUI components.

**Waves 59-73 — peer field cascade + EnginePeer wrap drops**
Series of single- to two-file peer-field migrations; consumer-side wrap
removal (`EnginePeer(peer)` -> direct EnginePeer use); `as? TelegramUser`
cast conversion to `case let .user(...)` enum match. Wave 64: RenderedPeer
convenience init. Wave 68: SelectivePrivacyPeer convenience init.

**Waves 74-83 — controller-Node bridge cleanup + small migrations**
Wave-71 shadow-pattern cleanup at controller->Node bridges. Migrations of
ChatRecentActionsController.peer (74), PeerInfoMember (75), MentionChatInputPanelItem
(76), PassportUI SecureIdAuthController (77), AccountWithInfo + ShareController
(78), peerInputActivitiesPromise (79), InactiveChannel (80), BlockedPeers (81),
openHashtag resolveSignal (82), NotificationExceptionsList (83).

**Waves 84-90 — TelegramEngine.Resources facade migrations**
Per-method Shape-A/B sweeps converting `<ctx>.account.postbox.mediaBox.X(...)`
to `<ctx>.engine.resources.X(...)`. Wave 90 was a single-commit big sweep:
40 fetchedMediaResource sites in 25 files migrated to engine.resources.fetch
facade in one atomic pass with first-pass-clean build.

Methods covered: storeResourceData, completedResourcePath, cancelInteractiveResourceFetch,
resourceRangesStatus, resourceStatus, fetch (fetchedMediaResource).

**Waves 91-92 — additional type migrations**
Wave 91: ItemListWebsiteItem.peer + RecentSessionsController enum-case payload
+ openWebSession callback Peer? -> EnginePeer?.
Wave 92: ChatListController StateHolder.EntryContext status type
MediaResourceStatus -> EngineMediaResource.FetchStatus.

**Wave 93 — speculative `import Postbox` drop sweep**
Drop import from 7 wave-touched files where it became unused; restore in 5
files where bare PeerId/Message/MediaId/StoryId references escaped the
pre-flight regex. Includes one MediaId(...) -> EngineMedia.Id(...) swap in
InAppPurchaseManager to unlock its import drop.

## Build state

Final state at squash: clean Telegram/Telegram build at debug_sim_arm64.

## Persistent-state notes

- Pre-existing WIP unchanged across the squashed range:
  - build-system/bazel-rules/sourcekit-bazel-bsp submodule marker
  - Untracked: build-system/tulsi/, submodules/TgVoip/, third-party/libx264/

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 20:48:15 +04: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 Various improvements 2026-03-28 00:11:41 +08:00
ChatButtonKeyboardInputNode Various improvements 2026-01-30 23:53:55 +08:00
ChatChannelSubscriberInputPanelNode Various improvements 2026-04-18 08:41:08 +02:00
ChatContextResultPeekContent
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 improvements 2026-03-27 01:13:38 +01: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 Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
ChatMessageBirthdateSuggestionContentNode Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
ChatMessageBubbleContentNode Formatted date support 2026-02-06 14:24:03 +04:00
ChatMessageBubbleItemNode Various improvements 2026-04-24 03:16:14 +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 Text selection 2026-03-24 22:51:44 +08:00
ChatMessageFileBubbleContentNode [WIP] Polls 2026-03-13 11:04:33 +01:00
ChatMessageForwardInfoNode Various fixes 2025-12-05 02:26:17 +04:00
ChatMessageGameBubbleContentNode
ChatMessageGiftBubbleContentNode Various improvements 2026-01-31 07:08:06 +04:00
ChatMessageGiftOfferBubbleContentNode Various fixes 2025-12-11 21:32:44 +04:00
ChatMessageGiveawayBubbleContentNode
ChatMessageInstantVideoBubbleContentNode
ChatMessageInstantVideoItemNode [WIP] Polls 2026-03-16 18:07:12 +01:00
ChatMessageInteractiveFileNode Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04:00
ChatMessageInteractiveInstantVideoNode Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
ChatMessageInteractiveMediaNode Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
ChatMessageInvoiceBubbleContentNode
ChatMessageItem
ChatMessageItemCommon
ChatMessageItemImpl Various fixes 2026-04-23 01:26:13 +02:00
ChatMessageItemView Postbox -> TelegramEngine wave 20: shortLivedResourceCachePathPrefix consumer sweep 2026-04-21 02:27:39 +04:00
ChatMessageJoinedChannelBubbleContentNode Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
ChatMessageMapBubbleContentNode [WIP] Polls 2026-03-13 14:11:19 +01: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 Various improvements 2025-12-29 10:05:51 +04:00
ChatMessagePollBubbleContentNode Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
ChatMessageProfilePhotoSuggestionContentNode
ChatMessageReactionsFooterContentNode
ChatMessageReplyInfoNode Various fixes 2026-04-14 03:33:34 +02:00
ChatMessageRestrictedBubbleContentNode
ChatMessageSelectionInputPanelNode Various improvements 2026-04-18 08:41:08 +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 Various improvements 2026-04-24 23:21:05 +04: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 Various improvements 2026-04-22 00:32:34 +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 Update localization 2026-02-24 19:12:54 +04:00
ChatRecentActionsController Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04: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 27-36 2026-04-24 11:24:13 +04:00
ChatSendAudioMessageContextPreview Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04: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 Various improvements 2026-04-10 17:21:36 +02:00
ChatSwipeToReplyRecognizer
ChatTextInputActionButtonsNode Glass 2026-01-25 00:31:18 +08:00
ChatTextInputAudioRecordingCancelIndicator
ChatTextInputAudioRecordingTimeNode
ChatTextInputPanelNode Merge commit '96b1432434' 2026-04-24 11:24:47 +04:00
ChatTextInputSlowmodePlaceholderNode
ChatUserInfoItem Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04: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 46-93 (squashed) 2026-04-25 20:48:15 +04: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
ReplyAccessoryPanelNode Various improvements 2026-03-27 01:13:38 +01: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