Commit graph

25 commits

Author SHA1 Message Date
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
Isaac
72fbe5d7a7 Various improvements 2026-03-13 14:54:44 +01:00
Ilya Laktyushin
b65a684431 Various improvements 2025-09-19 22:48:59 +04:00
Isaac
4b90fffb69 Call improvements 2025-05-05 18:04:32 +02:00
Isaac
7593cc2724 Group call participants may not have a peer available (support blockchain ids) 2025-04-14 20:18:33 +04:00
Isaac
1f517e187a [WIP] Conference calls 2025-02-11 18:46:59 +04:00
Isaac
4fb071d91d [WIP] Conference calls 2025-01-24 21:03:51 +04:00
Isaac
a4717b7906 [WIP] Conference 2025-01-21 11:04:37 +04:00
Isaac
dea8f6b48c Add empty search result chat list footer 2024-12-28 02:43:55 +08:00
Isaac
9a038722d3 Various improvements 2024-11-20 22:09:16 +04:00
Isaac
0e1998df1e Video chat improvements 2024-10-01 22:10:11 +08:00
Isaac
fab8c09a37 Video chat improvements 2024-10-01 21:26:30 +08:00
Isaac
923587b0da [WIP] Dynamic video streaming 2024-09-18 01:04:29 +08:00
Isaac
63ac3822f7 Video chat UI 2024-09-13 17:59:13 +08:00
Isaac
5aa7784d2c [WIP] Video chat UI 2024-09-10 21:32:34 +08:00
Isaac
ca5b6c0f0b [WIP] Video chat UI 2024-09-10 19:33:13 +08:00
Isaac
f203693f89 [WIP] Video chat UI 2024-09-10 16:01:37 +08:00
Isaac
ccedf9fc06 [WIP] Video chats 2024-09-06 21:41:16 +08:00
Isaac
d2b4622ef0 [WIP] Video chat v2 2024-09-03 22:34:04 +08:00
Isaac
8223ac9d50 Fix video rotation 2024-08-30 23:21:53 +08:00
Isaac
0afe444a8f Fix video display 2024-08-30 23:11:05 +08:00
Isaac
67ded11399 [WIP] Video chats v2 2024-08-30 22:26:59 +08:00
Isaac
f21f7f66f7 [WIP] Video chats 2024-08-27 21:18:57 +08:00
Isaac
272a5df7ac Update API 2024-08-26 23:23:57 +08:00
Isaac
33e78cd5ed [WIP] Video chat screen V2 2024-08-23 19:37:33 +08:00