47 Commits
Author SHA1 Message Date
isaacandClaude Opus 4.7 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
isaacandClaude Opus 4.7 b20cd3502b Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep
Wave 11: ActionSheetPeerItem de-Postboxed. Revisits wave-1 abandonment.
`postbox: Postbox, network: Network` init params collapse to
`stateManager: AccountStateManager`; avatar setPeer call routes via
`item.stateManager.postbox` / `.network`. Module never names Postbox.
Sole caller (ShareController.swift:1146) migrated in place.

Wave 12: HorizontalPeerItem de-Postboxed (same pattern). Ripples the
collapse up into ChatListSearchRecentPeersNode's public init
(`postbox:/network:` -> `stateManager:`). That module still imports
Postbox for PostboxViewKey/UnreadMessageCountsView internals but its
public surface simplifies. 3 external caller sites migrated.

Wave 13: AttachmentTextInputPanelNode minor cleanup. Module was already
Postbox-free at source level (wave 6) but carried a dead BUILD dep and
had 2 raw `peerId?.namespace == Namespaces.Peer.SecretChat` checks.
Both now use existing `PeerId.isSecretChat` extension in TelegramCore.

Wave 14: BUILD-dep sweep mirroring wave 6's source sweep. 98 modules
had `//submodules/Postbox:Postbox` (or `//submodules/Postbox`) BUILD
deps despite no source file importing Postbox since wave 6. Single
iteration, zero restores -- Bazel Swift requires source-level `import`
for symbol resolution, so redundant BUILD deps are pure metadata.

Net: 110 files, +116/-149. Build verified green (debug_sim_arm64).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 20:26:58 +02:00
Ilya Laktyushin d0d3b064ed Cherry-pick fixes 2026-04-01 00:59:30 +02:00
Isaac 40e1e6a116 Improvements 2026-03-20 19:17:11 +01:00
Isaac bc7858ad2b AI editing 2026-03-20 18:23:45 +01:00
Ilya Laktyushin 142d59cf8f Various improvements 2026-01-27 22:24:31 +04:00
Ilya Laktyushin 0d12dd29ad Various improvements 2026-01-25 22:17:49 +04:00
Mikhail Filimonov db93244583 update api (rarities, crafted) 2026-01-16 16:20:08 +04:00
Isaac 05b667797d Glass 2025-12-28 22:39:34 +08:00
Isaac 4a13c3830a Glass 2025-12-26 20:29:30 +08:00
Ilya Laktyushin b9e5a3f3de Various improvements 2025-09-05 17:39:32 +05:00
Ilya Laktyushin a60a437206 Various improvements 2025-08-22 21:46:07 +04:00
Isaac a23deded22 Cleanup 2025-06-28 19:48:34 +02:00
Ilya Laktyushin b7f84a97b5 Various fixes 2025-05-06 04:14:21 +04:00
Ilya Laktyushin b130511450 [WIP] Gift resale 2025-04-12 02:19:32 +04:00
Ilya Laktyushin 5956d5142f Various improvements 2025-03-21 18:41:49 +04:00
Ilya Laktyushin 369116767a Various fixes 2025-03-12 18:57:22 +04:00
Ilya Laktyushin 5ee53ad996 Various fixes 2025-03-12 00:40:11 +04:00
Ilya Laktyushin edecdd7fec Various fixes 2025-03-07 21:58:30 +04:00
Ilya Laktyushin a42f04ba50 Various improvements 2025-03-02 05:39:00 +04:00
Ilya Laktyushin f541820b46 Various improvements 2025-03-02 04:55:34 +04:00
Ilya Laktyushin 15fd6d7b37 Various fixes 2025-03-01 00:49:18 +04:00
Ilya Laktyushin 86e7238bfa Various fixes 2025-02-28 23:07:50 +04:00
Ilya Laktyushin 3fb73a8b95 Various fixes 2025-02-28 22:43:33 +04:00
Ilya Laktyushin 7a89a58930 Various improvements 2025-02-28 20:09:31 +04:00
Ilya Laktyushin 7b441c74f4 Fix profile gift cover pattern color 2025-01-23 14:31:30 +04:00
Ilya Laktyushin 0485aed646 Various improvements 2025-01-23 06:46:50 +04:00
Ilya Laktyushin d6964efa67 Various improvements 2025-01-21 01:15:01 +04:00
Ilya Laktyushin f137e27944 Update API 2025-01-16 02:16:28 +04:00
Ilya Laktyushin b6f8cce7ea Update API [skip ci] 2025-01-10 15:22:27 +04:00
Ilya Laktyushin 5d4213c4fc Various improvements 2024-12-27 23:04:34 +04:00
Ilya Laktyushin e3ee1dde7e Update API [skip ci] 2024-12-27 09:16:41 +04:00
Ilya Laktyushin 6e850130fd Update API [skip ci] 2024-12-26 07:27:14 +04:00
Ilya Laktyushin 5451053195 Various improvements 2024-12-22 17:16:14 +04:00
Isaac 9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Isaac 0bf76daf53 Profile color improvements 2023-11-27 17:53:07 +04:00
Isaac 58eb4ce2bb Modernize color changed toast 2023-11-27 17:05:20 +04:00
Isaac e7b87ff5d8 Animate patterns 2023-11-27 14:30:11 +04:00
Isaac ea7f2df382 Fix cover icon alpha 2023-11-24 14:21:17 +04:00
Isaac 4a3c5e4089 Peer header blur 2023-11-24 13:52:21 +04:00
Isaac 47259ef808 Color improvements 2023-11-24 12:26:50 +04:00
Isaac 9643d1712b Update API 2023-11-23 19:20:10 +04:00
Isaac ceead276c4 Color improvements 2023-11-23 18:50:44 +04:00
Isaac f47a710fb9 Fix colors 2023-11-23 18:30:02 +04:00
Isaac b1fba62426 Color updates 2023-11-23 17:38:42 +04:00
Isaac 66b3d8b874 [WIP] Colored profiles 2023-11-22 01:05:47 +04:00
Ali e25f926342 [WIP] Colored profile banners 2023-11-17 21:48:46 +04:00