38 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
Ilya Laktyushin 532a3ae3e1 Various fixes 2026-04-16 21:45:26 +02:00
Isaac 34477605b1 Various improvements 2026-03-31 20:24:24 +08:00
Ilya Laktyushin f3c18e1436 Various improvements 2026-03-29 22:18:19 +02:00
Ilya Laktyushin f160fb99d9 Various improvements 2026-03-29 16:23:09 +02:00
Ilya Laktyushin 8a523bc1cd Update localization 2026-03-27 02:32:43 +01:00
Ilya Laktyushin 9dde762a1c Various improvements 2026-03-26 18:43:26 +01:00
Ilya Laktyushin 6b6ba070c7 Update API 2026-03-26 09:26:15 +01:00
Ilya Laktyushin d4402d371a Fix audio file ref 2026-03-24 08:56:17 +01:00
Ilya Laktyushin e11c9899e6 Various fixes 2026-03-23 15:03:50 +01:00
Ilya Laktyushin 61e174fd9e Various improvements 2026-03-22 16:59:07 +01:00
Ilya Laktyushin 6fd65e6d26 Various improvements 2026-03-22 16:53:55 +01:00
Ilya Laktyushin 8098f24f4e Various improvements 2026-03-22 16:41:22 +01:00
Ilya Laktyushin 66d08c0e1b Various improvements 2026-03-22 13:44:04 +01:00
Ilya Laktyushin 30ad6807d4 Various improvements 2026-03-21 10:04:44 +01:00
Ilya Laktyushin ea4bcd9a46 Various improvements 2026-03-21 09:47:17 +01:00
Ilya Laktyushin 2a55559f82 Various fixes 2026-03-20 15:46:56 +01:00
Ilya Laktyushin c32f645f5e [WIP] Polls 2026-03-17 16:32:49 +01:00
Ilya Laktyushin 3a311f75bd Update API 2026-03-16 13:37:36 +01:00
Ilya Laktyushin cbc5a49507 [WIP] Polls 2026-03-13 11:04:33 +01:00
Ilya Laktyushin dca6b5f145 Various improvements 2026-03-12 13:51:27 +01:00
Isaac 9a4327116d Refactor 2026-03-10 00:38:36 +01:00
Ilya Laktyushin ad0f639fb5 Various fixes 2026-03-02 18:26:12 +04:00
Ilya Laktyushin b87a202329 Various fixes 2026-02-28 00:35:08 +04:00
Ilya Laktyushin 5efa8f63c0 Various fixes 2026-02-27 21:41:43 +04:00
Ilya Laktyushin d9d1210c1d Various improvements 2026-02-19 21:53:26 +04:00
Ilya Laktyushin 974a2f6caa Various improvements 2025-12-26 13:34:23 +04:00
Ilya Laktyushin 2edce5ebf2 Alerts 2025-12-22 00:19:11 +04:00
Isaac 0c3530d8a8 Glass 2025-12-10 00:16:36 +08:00
Isaac 1ee7268488 Glass 2025-12-06 01:28:06 +08:00
Isaac 3b02aeae9d Update localization 2025-12-02 22:15:52 +08:00
Ilya Laktyushin 6bc1fe1939 Various improvements 2025-12-01 19:54:58 +04:00
Ilya Laktyushin 5877f2c20d Various improvements 2025-10-29 17:20:36 +04:00
Ilya Laktyushin c014d0b333 Various improvements 2025-10-22 21:12:38 +04:00
Ilya Laktyushin 35c9a5d279 Various improvements 2025-10-20 00:46:26 +04:00
Ilya Laktyushin 85092482f3 Various improvements 2025-10-17 17:01:25 +04:00
Ilya Laktyushin 473b00c2e7 Various improvements 2025-10-16 08:09:30 +04:00
Ilya Laktyushin 0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00