Telegram-iOS/submodules/TelegramCallsUI/Sources
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
..
Components Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04:00
AccountGroupCallContextImpl.swift Glass 2025-12-26 20:29:30 +08:00
CallController.swift Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04:00
CallControllerButton.swift Various improvements 2025-06-10 22:11:07 +02:00
CallControllerButtonsNode.swift
CallControllerKeyButton.swift
CallControllerKeyPreviewNode.swift
CallControllerNode.swift Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep 2026-04-19 23:46:13 +02:00
CallControllerNodeV2.swift Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
CallControllerStatusNode.swift
CallControllerToastNode.swift
CallDebugNode.swift
CallFeedbackController.swift Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep 2026-04-19 23:46:13 +02:00
CallKitIntegration.swift Update to iOS 13 2025-06-11 16:59:53 +08:00
CallRatingController.swift Alerts 2025-12-22 00:19:11 +04:00
CallRouteActionSheetItem.swift
CallStatusBarNode.swift Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04:00
CallSuggestTabController.swift Alerts 2025-12-22 00:19:11 +04:00
GroupCallLogs.swift Conference updates 2025-04-07 12:50:23 +04:00
GroupCallScreencast.swift Conference updates 2025-04-07 12:50:23 +04:00
GroupVideoNode.swift Voice chat optimizations (video and mic blob) 2024-05-31 18:00:30 +04:00
LegacyCallControllerButton.swift
LegacyCallControllerButtonsNode.swift
LegacyCallControllerNode.swift [WIP] Conference calls 2025-02-11 18:46:59 +04:00
LegacyCallControllerStatusNode.swift
MetalVideoRenderingView.swift Voice chat optimizations (video and mic blob) 2024-05-31 18:00:30 +04:00
PresentationCall.swift Stories 2025-11-07 22:54:56 +08:00
PresentationCallManager.swift Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04:00
PresentationCallToneData.swift
PresentationGroupCall.swift Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04:00
SampleBufferVideoRenderingView.swift [Temp] 2025-01-14 11:52:31 +08:00
ScheduleVideoChatSheetScreen.swift Update API 2026-02-10 12:58:04 +04:00
SharedCallAudioContext.swift Stories 2025-11-06 23:16:55 +04:00
VideoChatActionButtonComponent.swift Glass 2026-01-25 00:31:18 +08:00
VideoChatEncryptionKeyComponent.swift Glass 2026-01-25 00:31:18 +08:00
VideoChatExpandedControlsComponent.swift [WIP] Video chats 2024-09-06 21:41:16 +08:00
VideoChatExpandedParticipantThumbnailsComponent.swift Various improvements 2025-07-09 17:47:56 +04:00
VideoChatExpandedSpeakingToastComponent.swift [WIP] Monoforums 2025-05-08 20:56:55 +01:00
VideoChatListInviteComponent.swift Conference updates 2025-04-04 14:04:52 +04:00
VideoChatMuteIconComponent.swift Video chat improvements 2024-10-01 21:26:30 +08:00
VideoChatParticipantAvatarComponent.swift Various improvements 2025-09-29 06:42:09 +04:00
VideoChatParticipantsComponent.swift Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep 2026-04-19 23:46:13 +02:00
VideoChatParticipantStatusComponent.swift Conference update 2025-04-04 22:17:28 +04:00
VideoChatParticipantVideoComponent.swift Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
VideoChatParticipantVideoStatusComponent.swift Video chat UI 2024-09-13 17:59:13 +08:00
VideoChatPinStatusComponent.swift [WIP] Video chats 2024-09-06 21:41:16 +08:00
VideoChatScheduledInfoComponent.swift Glass 2025-12-26 20:29:30 +08:00
VideoChatScreen.swift Merge commit '96b1432434' 2026-04-24 11:24:47 +04:00
VideoChatScreenInviteMembers.swift Postbox -> TelegramEngine waves 37-43 + wave 44 design/plan (squashed) 2026-04-24 23:19:43 +04:00
VideoChatScreenMoreMenu.swift Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04:00
VideoChatScreenParticipantContextMenu.swift Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
VideoChatTitleComponent.swift Various improvements 2025-09-29 06:42:09 +04:00
VideoChatToasts.swift Various improvements 2025-09-29 06:42:09 +04:00
VideoChatVideoContext.swift [WIP] Video chat v2 2024-09-03 22:34:04 +08:00
VideoChatVideoLoadingEffectView.swift Video chat UI 2024-09-13 17:59:13 +08:00
VideoRenderingContext.swift [WIP] Video chat UI 2024-09-10 19:33:13 +08:00
VoiceChatAccountHeaderActionSheetItem.swift Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep 2026-04-19 23:46:13 +02:00
VoiceChatActionItem.swift Glass 2025-12-26 20:29:30 +08:00
VoiceChatCameraPreviewController.swift Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep 2026-04-19 23:46:13 +02:00
VoiceChatController.swift Refactoring 2026-04-03 15:50:39 +08:00
VoiceChatFullscreenParticipantItem.swift Glass 2025-12-26 20:29:30 +08:00
VoiceChatHeaderButton.swift Various improvements 2025-09-22 06:42:19 +04:00
VoiceChatInfoContextItem.swift Various improvements 2026-01-16 21:23:32 +08:00
VoiceChatJoinScreen.swift Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
VoiceChatMainStageNode.swift Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04:00
VoiceChatMicrophoneNode.swift Glass 2025-12-26 20:29:30 +08:00
VoiceChatOverlayController.swift Voice chat optimizations (video and mic blob) 2024-05-31 18:00:30 +04:00
VoiceChatParticipantItem.swift Glass 2026-01-13 19:21:49 +04:00
VoiceChatPeerActionSheetItem.swift
VoiceChatPeerProfileNode.swift Glass 2026-01-13 19:21:49 +04:00
VoiceChatPinNode.swift
VoiceChatRecordingContextItem.swift Various improvements 2026-01-16 21:23:32 +08:00
VoiceChatRecordingSetupController.swift Various improvements 2025-10-17 17:01:25 +04:00
VoiceChatShareScreenContextItem.swift Various improvements 2026-03-13 14:54:44 +01:00
VoiceChatSpeakerNode.swift
VoiceChatTileGridNode.swift Glass 2025-12-26 20:29:30 +08:00
VoiceChatTileItemNode.swift
VoiceChatTimerNode.swift Glass 2025-12-26 20:29:30 +08:00
VoiceChatTitleEditController.swift Various improvements 2025-12-23 22:25:44 +04:00
VoiceChatTitleNode.swift
VoiceChatVolumeContextItem.swift Various improvements 2026-01-16 21:23:32 +08:00