Ilya Laktyushin
ec8bd9acdd
Various improvements
2026-06-04 01:44:36 +02:00
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
e3bf0cd30c
Various fixes
2026-04-23 01:26:13 +02:00
isaac
939873f6f4
Postbox -> TelegramEngine wave 25: copyResourceData facades + consumer sweep
...
Adds two TelegramEngine.Resources.copyResourceData overloads and migrates 4 Shape-A sites
across 3 consumer files.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 04:09:42 +04:00
isaac
d78fe8e8b8
Postbox -> TelegramEngine wave 23: cancelInteractiveResourceFetch facade + consumer sweep
...
Adds TelegramEngine.Resources.cancelInteractiveResourceFetch(id:) and migrates 5 of 7 Shape-A
sites. Two sites in ChatMessageInteractiveMediaNode.swift skipped to avoid mixing with
pre-existing uncommitted WIP in that file.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 03:57:46 +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
Isaac
16c630b946
Refactoring
2026-04-03 15:50:39 +08:00
Isaac
9c4e390f0d
Various improvements
2026-01-30 18:50:18 +08:00
Isaac
6ad2622b30
Various updates
2026-01-24 00:35:42 +08:00
Isaac
4a13c3830a
Glass
2025-12-26 20:29:30 +08:00
Isaac
40828e9037
[WIP] UI
2025-01-21 21:08:44 +04:00
Ilya Laktyushin
c73f24f5f2
Various improvements
2025-01-20 05:46:17 +04:00
Isaac
df9e27f4fb
[Temp] video v2
2024-12-25 00:18:02 +08:00
Isaac
3797f3af4f
Video improvements
2024-11-08 16:26:01 +01: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
Ali
3453137463
Various improvements
2023-09-15 21:12:01 +02: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
1b723cd2a7
Avatar upload improvements
2023-01-28 04:42:49 +04:00
Ilya Laktyushin
29c7eb0cc0
Translation improvements
2023-01-23 21:10:27 +04:00
Ilya Laktyushin
e7fb73cadd
Channel translation
2023-01-18 01:13:56 +04:00
Ilya Laktyushin
125ae0f124
Update API [skip ci]
2023-01-17 20:03:49 +04:00
Ali
41060f0da0
Modernized save to gallery
2023-01-13 21:14:45 +04:00
Ilya Laktyushin
1798554940
Various fixes
2022-12-22 16:42:13 +04:00
Ilya Laktyushin
b5c35cd8e7
Various improvements
2022-12-21 02:08:39 +04:00
Ilya Laktyushin
5fe2e3f69b
Various fixes
2022-12-19 22:34:56 +04:00
Ilya Laktyushin
43c8c3efdd
Avatar fixes
2022-12-19 18:26:34 +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
21121e1924
Avatar setup improvements
2022-12-12 04:46:21 +04:00
Ilya Laktyushin
5788f4a1ac
Custom contact photos [skip ci]
2022-12-06 16:03:53 +04:00
Ali
5eb4bbeaae
Refactoring
2022-05-29 19:11:14 +04:00
Ilya Laktyushin
ea2d3dd553
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
2022-05-28 19:29:07 +04:00
Ilya Laktyushin
7b0e7a47af
Various improvements
2022-05-28 19:28:58 +04:00
Ali
e8d124c812
Refactoring
2022-05-28 18:26:23 +04:00
Ilya Laktyushin
5229c1666c
Various fixes
2022-04-23 07:57:53 +04:00
Ilya Laktyushin
274f4416c3
Fix avatar gallery dismissal
2021-12-08 22:20:14 +04:00
Ilya Laktyushin
d2015f3375
Various Fixes
2021-11-21 18:11:11 +04:00
Ilya Laktyushin
1f0f7bbac7
Various Fixes
2021-11-20 22:00:20 +04:00
Ali
24b4e1707b
Shared media improvements
2021-11-02 21:27:03 +04:00
Ali
7140c69dbf
Refactoring
2021-09-24 11:59:21 +03:00
Ali
6e5c503338
Refactoring
2021-09-20 14:51:46 +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
Ali
7c8ad70014
Merge branch 'master' into experimental-2
2021-07-21 22:04:58 +02:00
Ali
1a04fb4408
Refactor SyncCore back into TelegramCore
2021-07-21 21:43:20 +02:00