Commit Graph
141 Commits
Author SHA1 Message Date
isaacisaacClaude 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
IsaacandIsaac 16c630b946 Refactoring 2026-04-03 15:50:39 +08:00
Ilya Laktyushin e279f224a1 Various improvements 2026-03-06 13:20:49 +01:00
IsaacandIsaac 2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Ilya Laktyushin 2a5b83429a Various fixes 2026-01-06 14:20:06 +04:00
Ilya Laktyushin 72c58813a8 Various improvements 2025-08-01 23:25:24 +02:00
IsaacandIsaac 5ad4331eeb WIP 2025-07-17 10:34:19 +02:00
Ilya Laktyushin f610e8b3b3 Various improvements 2025-06-30 00:06:27 +02:00
Ilya Laktyushin 30c2bbc94b Various improvements 2025-06-29 00:41:38 +02:00
Ilya Laktyushin 8862492480 Update API 2025-06-28 17:38:45 +02:00
Ilya Laktyushin c22e60092f Update API 2025-06-21 13:40:00 +02:00
IsaacandIsaac 54c5314462 Update conference calls 2025-04-01 13:56:08 +04:00
Ilya Laktyushin 2dfe959eb2 Various fixes 2025-02-26 19:09:35 +04:00
Ilya Laktyushin cb0b8c0b9e Various improvements 2025-02-25 19:59:48 +04:00
Ilya Laktyushin 8d7f9bf372 Various improvements 2025-02-22 19:17:36 +04:00
IsaacandIsaac 7aaf95e40a Stars ref 2024-11-30 00:23:21 +04:00
IsaacandIsaac c229c3c94f Stars ref 2024-11-29 18:04:15 +04:00
Ilya Laktyushin 2c3bd7570b Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2024-11-29 00:28:59 +04:00
Ilya Laktyushin c4013c3df6 Various improvements 2024-11-29 00:28:50 +04:00
IsaacandIsaac 1322c4364e Stars ref 2024-11-29 00:07:25 +04:00
IsaacandIsaac be83150aba [WIP] Star refs 2024-11-28 16:13:06 +04:00
IsaacandIsaac 931e34e1bd Temp 2024-11-27 17:37:21 +04:00
Ilya Laktyushin 30e4041149 Various improvements 2024-10-28 18:21:47 +04:00
Ilya Laktyushin 4b537a4cd5 Various improvements 2024-10-26 01:25:07 +04:00
Ilya Laktyushin 3d03fc94c6 Various improvements 2024-10-25 19:09:31 +04:00
Ilya Laktyushin 0c7f3223c6 Various fixes 2024-10-07 16:26:17 +04:00
IsaacandIsaac c474162cff Fix build 2024-09-19 01:01:52 +08:00
IsaacandIsaac 21d5fe177b Fix build 2024-09-19 00:37:24 +08:00
IsaacandIsaac 46646a41a9 Support Xcode 16 2024-09-18 22:43:19 +08:00
Ilya Laktyushin f620d084bc Fix prepaid giveaway 2024-09-03 19:15:41 +04:00
Ilya Laktyushin e27bb3a220 Various improvements 2024-09-01 16:03:17 +04:00
Ilya Laktyushin d761d9314c Various improvements 2024-09-01 10:32:03 +04:00
Ilya Laktyushin 707d5137ca Various improvements 2024-08-30 16:07:11 +04:00
Ilya Laktyushin df62e25f5a Stars giveaways 2024-08-26 22:43:43 +04:00
Ilya Laktyushin dc68eab568 Merge branch 'master' into stars-subscriptions 2024-07-30 11:29:42 +02:00
Ilya Laktyushin 14d36ceb0e Various fixes 2024-07-25 19:19:31 +02:00
Ilya Laktyushin ea1e9e797f Stars subscriptions API [skip ci] 2024-07-22 20:45:32 +04:00
Ilya Laktyushin 3e448e833e Story covers 2024-07-19 17:43:17 +04:00
Ilya Laktyushin a6c7e92d6f Fix channel balances description 2024-07-18 01:39:12 +04:00
Ilya Laktyushin b4cc4e0bd0 Various improvements 2024-07-16 02:41:00 +04:00
Ilya Laktyushin 6054069e60 Various fixes 2024-07-13 18:46:42 +04:00
Ilya Laktyushin 4216ee3933 Various improvements 2024-07-13 18:13:58 +04:00
Ilya Laktyushin 39598deb04 Add reply action in gallery 2024-07-03 21:43:18 +04:00
Ilya Laktyushin aeeea1c1d5 Hide ads info when not needed 2024-07-03 13:57:15 +04:00
Ilya Laktyushin ed6081f34b Add channel proceeds info 2024-07-03 11:30:11 +04:00
Ilya Laktyushin f5092b8d8d Web app improvements 2024-07-02 21:03:22 +04:00
Ilya Laktyushin a28ec1d157 Update API 2024-07-01 20:23:26 +04:00
Ilya Laktyushin e23c7f2e2b Various fixes 2024-06-27 03:28:53 +04:00
Ilya Laktyushin d02046973f Various fixes 2024-06-22 22:16:43 +04:00
Ilya Laktyushin 3907c2ae9f Ads button in star stats 2024-06-22 19:55:37 +04:00