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
8edaa79eda
Merge commit ' 23c4d94748'
2026-04-19 23:54:22 +02:00
Isaac
7b2b74e79b
Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep
...
First build-verified unused-import sweep: speculatively dropped
import Postbox from 782 consumer files (plain ^import Postbox$ lines,
excluding TelegramCore/Postbox/TelegramApi paths), iterated 18 full
project builds with --continueOnError, restored the import on every
file that failed to compile. 183 drops survived; 189 consumer modules
newly Postbox-free.
Bundled: spec + plan + C1 atomic batch drop + C2 CLAUDE.md outcome and
permanent methodology guidance under Wave-selection. The methodology
subsection captures the reusable playbook (--continueOnError is
essential, dependency graphs are deep so expect many iterations,
pattern-based preemptive restores accelerate convergence, and
CLAUDE.md's engine typealias cheat sheet arrows are migration targets
rather than typealiases in TelegramCore).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 23:46:13 +02:00
Ilya Laktyushin
d88a29b378
Various improvements
2026-04-18 08:41:08 +02:00
Ilya Laktyushin
352d9f24e8
Fix build
2026-04-16 00:03:09 +02:00
Isaac
337ffb691e
Improvements
2026-03-28 21:31:09 +08:00
Isaac
f34db983e0
Various improvements
2026-03-28 00:11:41 +08:00
Isaac
c9add89043
More ai button fixes
2026-03-27 22:33:54 +08:00
Isaac
f48617fbec
Update
2026-03-25 00:18:11 +08:00
Ilya Laktyushin
d0e26af8b1
Various fixes
2026-03-22 18:05:56 +01:00
Ilya Laktyushin
66d08c0e1b
Various improvements
2026-03-22 13:44:04 +01:00
Ilya Laktyushin
ea4bcd9a46
Various improvements
2026-03-21 09:47:17 +01:00
Ilya Laktyushin
c32f645f5e
[WIP] Polls
2026-03-17 16:32:49 +01:00
Ilya Laktyushin
950d99eea7
[WIP] Polls
2026-03-13 14:11:19 +01:00
Ilya Laktyushin
45a9f55b0b
Various fixes
2026-03-01 18:49:55 +04:00
Ilya Laktyushin
b87a202329
Various fixes
2026-02-28 00:35:08 +04:00
Ilya Laktyushin
35c9a5d279
Various improvements
2025-10-20 00:46:26 +04:00
Ilya Laktyushin
85092482f3
Various improvements
2025-10-17 17:01:25 +04:00
Ilya Laktyushin
473b00c2e7
Various improvements
2025-10-16 08:09:30 +04:00
Ilya Laktyushin
0915a42e64
Various improvements
2025-10-16 05:30:06 +04:00
Isaac
5de7e74180
Merge branch 'master' into glass
...
# Conflicts:
# submodules/AttachmentUI/Sources/AttachmentPanel.swift
# submodules/ChatPresentationInterfaceState/Sources/ChatPanelInterfaceInteraction.swift
# submodules/TelegramUI/BUILD
# submodules/TelegramUI/Components/Chat/ChatRecentActionsController/Sources/ChatRecentActionsController.swift
# submodules/TelegramUI/Components/Chat/ChatTextInputActionButtonsNode/Sources/ChatTextInputActionButtonsNode.swift
# submodules/TelegramUI/Components/Chat/ChatTextInputPanelNode/Sources/ChatTextInputPanelNode.swift
# submodules/TelegramUI/Components/PeerInfo/PeerInfoScreen/Sources/PeerInfoScreen.swift
# submodules/TelegramUI/Components/PeerSelectionController/Sources/PeerSelectionControllerNode.swift
# submodules/TelegramUI/Sources/Chat/ChatControllerLoadDisplayNode.swift
# submodules/TelegramUI/Sources/ChatInterfaceStateInputPanels.swift
2025-09-02 19:55:51 +02:00
Ilya Laktyushin
41ae916106
Various improvements
2025-06-08 18:28:49 +02:00
Ilya Laktyushin
8d7f9bf372
Various improvements
2025-02-22 19:17:36 +04:00
Ilya Laktyushin
5451053195
Various improvements
2024-12-22 17:16:14 +04:00
Ilya Laktyushin
6513887eed
Various fixes
2024-11-13 21:41:13 +04:00
Ilya Laktyushin
3fd2bf7f2f
Various improvements
2024-11-12 03:16:44 +04:00
Ilya Laktyushin
37c91f89c5
Various improvements
2024-11-07 16:32:33 +01:00
Ilya Laktyushin
d2deea0ea2
Various fixes
2024-09-03 15:48:15 +04:00
Ilya Laktyushin
0f597d457e
Web app improvements
2024-08-25 16:15:35 +04:00
Ilya Laktyushin
28728b2ece
Various fixes
2024-08-02 16:27:56 +02:00
Ilya Laktyushin
8120dde68c
Various improvements
2024-07-25 00:54:36 +02:00
Ilya Laktyushin
29a1d4ed2f
Various fixes
2024-07-20 16:21:29 +04:00
Ilya Laktyushin
4216ee3933
Various improvements
2024-07-13 18:13:58 +04:00
Ilya Laktyushin
dc8b6b071e
Various fixes
2024-07-10 14:14:26 +04:00
Ilya Laktyushin
f5092b8d8d
Web app improvements
2024-07-02 21:03:22 +04:00
Ilya Laktyushin
613bba57c2
Web app improvements
2024-07-02 08:47:03 +04:00
Ilya Laktyushin
ffbc7921cf
Web app improvements
2024-06-28 23:41:21 +04:00
Ilya Laktyushin
9d3cc5996b
Various fixes
2024-06-28 17:45:00 +04:00
Ilya Laktyushin
ed8f1b35e9
Various fixes
2024-06-28 16:05:45 +04:00
Ilya Laktyushin
8e8f997021
Various fixes
2024-06-28 05:38:53 +04:00
Ilya Laktyushin
e348c620fa
Various fixes
2024-06-27 23:29:15 +04:00
Ilya Laktyushin
e163bc76a7
Various fixes
2024-06-27 00:41:55 +04:00
Ilya Laktyushin
022d626000
Various fixes
2024-06-26 13:54:54 +04:00
Ilya Laktyushin
2b1d09fb5a
Web app minimization
2024-06-25 22:26:55 +04:00
Ilya Laktyushin
7d5d9ba7ba
Paid media improvements
2024-06-24 16:51:22 +04:00
Ilya Laktyushin
1ae20bd685
Various improvements
2024-06-15 18:41:19 +04:00
Isaac
378b7e8ed5
Message preview improvements
2024-05-17 17:10:19 +04:00
Isaac
8736981248
Message effects improvements
2024-05-13 20:14:15 +04:00
Ilya Laktyushin
2b6a8e202e
Various fixes
2024-04-30 12:58:20 +04:00
Isaac
8e043a3a7d
Various improvements
2024-04-23 12:57:38 +04:00