Commit graph

70 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
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
0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00
Isaac
aaf52d4282 Conference calls 2025-03-30 02:06:50 +04:00
Isaac
df9e27f4fb [Temp] video v2 2024-12-25 00:18:02 +08:00
Isaac
af267cae64 Video player and calls 2024-09-20 22:33:36 +08:00
Isaac
923587b0da [WIP] Dynamic video streaming 2024-09-18 01:04:29 +08:00
Ilya Laktyushin
3e448e833e Story covers 2024-07-19 17:43:17 +04:00
Isaac
8df43bb775 Merge commit '856e1e70b2' 2024-06-12 23:04:35 +04:00
Isaac
9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Ilya Laktyushin
856e1e70b2 Fix story thumbs in expanded profile 2024-06-12 20:16:42 +04:00
Ilya Laktyushin
5470ba80ec Various improvements 2024-06-07 09:51:45 +04:00
Isaac
b66f748969 [WIP] Channel appearance 2023-12-15 15:13:40 +04:00
Isaac
492a91377a Profile improvements 2023-12-05 01:46:49 +04:00
Isaac
a189174b54 [WIP] Call UI 2023-12-05 00:48:43 +04:00
Isaac
1fa58bad64 Adjust blur 2023-11-27 20:09:04 +04:00
Isaac
c2c042ea48 Adjust blur 2023-11-27 19:20:22 +04:00
Isaac
92043f0241 Fix tint colors 2023-11-27 18:35:41 +04:00
Isaac
3279ead8f1 Disable reflection on pinch 2023-11-27 13:32:52 +04:00
Isaac
a59d8e3247 Experimental avatar blur extension 2023-11-27 00:53:36 +04:00
Isaac
68ee038a36 Adjust blur 2023-11-24 13:53:31 +04:00
Isaac
4a3c5e4089 Peer header blur 2023-11-24 13:52:21 +04:00
Ali
62765b241d Memory management issues 2023-09-21 00:12:53 +02:00
Ali
295ba9541b Localization 2023-07-16 19:32:01 +04:00
Ali
d6e97be56b Stories 2023-07-10 22:38:18 +04:00
Ali
3b0ddece86 Stories 2023-07-04 16:07:56 +02:00
Ali
624d0d49d5 Restore changes 2023-07-04 12:12:16 +02:00
Ali
6aa3e47ee8 Stories 2023-06-20 20:03:16 +03:00
Ali
ceda80c3a5 [WIP] Stories 2023-06-13 14:18:16 +03:00
Ali
969724de40 [WIP] Stories 2023-05-23 23:53:43 +04:00
Ali
6a548e11a6 Refactoring [skip ci] 2023-04-19 23:47:38 +04:00
Ilya Laktyushin
394c0d7a26 Avatar playback improvements 2023-01-25 05:12:31 +04:00
Ilya Laktyushin
7d11ba5d5e Various improvements 2023-01-24 22:29:00 +04:00
Ilya Laktyushin
e7fb73cadd Channel translation 2023-01-18 01:13:56 +04:00
Ali
41060f0da0 Modernized save to gallery 2023-01-13 21:14:45 +04:00
Ilya Laktyushin
7cef6ab450 Fix set by you label 2022-12-17 20:47:13 +04:00
Ilya Laktyushin
fe904af993 Avatar fixes 2022-12-17 20:24:26 +04:00
Ilya Laktyushin
d6436fd14c Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2022-12-17 16:09:34 +04:00
Ilya Laktyushin
77df1cf45a Various improvements 2022-12-17 15:35:00 +04:00
Ali
614c74b0b0 [WIP] Modern cache 2022-12-17 00:17:31 +04:00
Ilya Laktyushin
47ffcd2e4d Update API [skip ci] 2022-12-13 17:42:32 +04:00
Ilya Laktyushin
5788f4a1ac Custom contact photos [skip ci] 2022-12-06 16:03:53 +04:00
Ilya Laktyushin
5229c1666c Various fixes 2022-04-23 07:57:53 +04:00
Ilya Laktyushin
6f2e4ce581 Various fixes 2022-04-20 18:33:01 +04:00
Ilya Laktyushin
e172502145 Various fixes 2022-04-20 14:04:39 +04:00
Ilya Laktyushin
7ccd563199 User Profile Improvements 2022-01-25 06:05:50 +03:00
Ilya Laktyushin
616d3d0268 Various Improvements 2021-10-26 21:30:52 +04:00
Ali
7140c69dbf Refactoring 2021-09-24 11:59:21 +03:00
Ali
d6446a284b Merge branch 'master' into experimental-2 2021-08-05 01:44:20 +02:00
Ali
31bc746984 Fix more warnings 2021-08-05 01:42:59 +02:00