Commit graph

125 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
8408e0ae19 Postbox -> TelegramEngine waves 27-36
Consumer-sweep, facade-addition, and Peer→EnginePeer migrations:

- Wave 27: preferencesView consumer sweep
- Wave 28: resourceData consumer sweep
- Wave 29: resourceStatus consumer sweep
- Wave 30: _asStatus() bridge cleanup
- Wave 31: unused-import sweep re-run
- Wave 32: resourceStatus residue sweep
- Wave 33: loadedPeerWithId consumer sweep
- Wave 34: FoundPeer.peer Peer -> EnginePeer
- Wave 35: SendAsPeer.peer Peer -> EnginePeer
- Wave 36: ContactListPeer.peer Peer -> EnginePeer

Also includes per-wave specs, implementation plans, outcome logs, and
a CLAUDE.md wave-counter update.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 11:24:13 +04:00
Isaac
16c630b946 Refactoring 2026-04-03 15:50:39 +08:00
Isaac
2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Ilya Laktyushin
85092482f3 Various improvements 2025-10-17 17:01:25 +04:00
Isaac
1a31d83699 Conference calls 2025-04-03 00:37:42 +04:00
Isaac
54c5314462 Update conference calls 2025-04-01 13:56:08 +04:00
Isaac
931e34e1bd Temp 2024-11-27 17:37:21 +04:00
Ilya Laktyushin
5d2377bcb7 Various improvements 2024-06-15 20:34:07 +04:00
Ilya Laktyushin
1ae20bd685 Various improvements 2024-06-15 18:41:19 +04:00
Ilya Laktyushin
ca415e3145 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2024-04-22 19:28:37 +04:00
Isaac
ef12bf9ce6 Chat links and other features 2024-03-23 00:00:08 +04:00
Isaac
e71bf3beb6 Various improvements 2024-01-15 21:09:08 +04:00
Isaac
0e75f18f14 [WIP] Saved messages 2023-12-25 22:58:09 +04:00
Ali
77a5857a25 Sharing refactoring 2023-08-15 23:57:04 +04:00
Ali
95947fdb99 Refactoring [skip ci] 2023-04-20 18:43:29 +04:00
Ilya Laktyushin
441e102b0d Various improvements 2023-02-25 18:00:45 +04:00
Ilya Laktyushin
f8ab3d037e Various fixes 2023-02-21 20:07:36 +04:00
Ilya Laktyushin
18934cf6e9 Various fixes 2023-02-21 01:09:04 +04:00
Ilya Laktyushin
17390d9067 Various fixes 2022-11-09 15:10:56 +04:00
Ilya Laktyushin
d66e1db6cc Various improvements 2022-11-09 01:30:17 +04:00
Ilya Laktyushin
1c0af395db Various improvements 2022-11-08 15:11:37 +04:00
Ilya Laktyushin
4d1335d8c6 Add additional usernames indexing 2022-10-25 01:49:10 +03:00
Ali
93a7f7ece8 [WIP] Topics 2022-10-23 18:03:26 +04:00
Ilya Laktyushin
e82e84548c Various fixes 2022-10-22 18:33:54 +03:00
Ilya Laktyushin
6af5dcf332 Various improvements 2022-10-20 08:03:43 +03:00
Ilya Laktyushin
59b593696e Various improvements 2022-10-15 21:08:11 +03:00
Ilya Laktyushin
3cafe809f7 Additional links improvements 2022-10-10 13:08:25 +03:00
Ilya Laktyushin
16d6010385 Add account deletion 2022-06-30 18:55:19 +03:00
Ilya Laktyushin
4b51b8c1ad Various fixes 2022-06-20 18:48:59 +05:00
Ilya Laktyushin
d9d9e9ef24 Various fixes 2022-06-20 15:33:34 +05:00
Ilya Laktyushin
4251ee2c1b Various fixes 2022-06-09 20:18:00 +04:00
Ilya Laktyushin
ae44159553 Various fixes 2022-06-09 16:54:03 +04:00
Ilya Laktyushin
1084abaac0 Various improvements 2022-06-07 16:08:46 +04:00
Ilya Laktyushin
57e7e6906b Various improvements 2022-06-07 15:58:56 +04:00
Ilya Laktyushin
b5dcba8bae Various improvements 2022-06-07 00:04:28 +04:00
Ilya Laktyushin
f9c0eeba55 Various improvements 2022-06-01 11:09:20 +04:00
Ali
e8d124c812 Refactoring 2022-05-28 18:26:23 +04:00
Ilya Laktyushin
4b41660767 Various improvements 2022-05-20 23:11:45 +04:00
Ilya Laktyushin
81f179be9d Various improvements 2022-05-12 06:35:14 +04:00
Ilya Laktyushin
eedfedbfc3 Various improvements 2022-05-11 19:13:58 +04:00
Ilya Laktyushin
5ded9f78a6 Various improvements 2022-05-08 19:34:50 +04:00
Ilya Laktyushin
93b84ebf24 Various improvements 2022-05-03 20:04:31 +04:00
Ilya Laktyushin
f38d77a985 Various fixes 2022-04-25 16:13:50 +04:00
Ilya Laktyushin
7ff92543ac Revert "Revert some code"
This reverts commit 61136bedc8.
2022-04-21 16:29:49 +04:00
Ilya Laktyushin
61136bedc8 Revert some code 2022-04-21 01:48:43 +04:00
Ilya Laktyushin
69fda4b94e Various fixes 2022-04-17 14:14:12 +04:00
Ilya Laktyushin
6e4b9a82e9 Various improvements 2022-04-15 19:48:29 +04:00
Ilya Laktyushin
701fe95891 Various improvements 2022-04-15 03:31:37 +04:00
Ali
a9c595a640 Another feed experiment 2022-03-18 22:55:06 +04:00