isaac
|
e918b353ec
|
Postbox refactor waves 278-356: squash
Squashes 79 sequential refactor waves into a single commit.
Highlights:
- Drop `import Postbox` (and matching `//submodules/Postbox` BUILD deps) from a wide swath of consumer files: ChatList, ChatMessage*BubbleContentNode subclasses, ListMessageNode/ListMessageItem, GalleryData, ChatHistorySearchContainerNode, ChatPanelInterfaceInteraction, ChatControllerInteraction, ChatMessageStickerItemNode, ChatMessageReplyInfoNode, ChatMessageInstantVideoItemNode, ChatPresentationInterfaceState, BrowserMarkdown/Readability, MediaResources, LocalMediaResources, ICloudResources, FetchManager, ShareController, OpenChatMessage, GalleryController, GroupStickerSearchContainerNode, GroupStickerPackCurrentItem, ChatPinnedMessageTitlePanelNode, OverlayAudioPlayerController, PresentationThemeSettings, StatisticsUI/StoryIconNode, TextFormat/StringWithAppliedEntities, GalleryUI/VideoAdComponent, StickerPackPreviewUI, WallpaperPreviewMedia, WallpaperResources, YoutubeEmbedImplementation, InstantPageExternalMediaResource, PlatformRestrictionMatching, TelegramUIDeclareEncodables, ChatListNode/ChatListSearchContainerNode.
- Add `TelegramEngine` facades: `Themes.wallpapers`, `Themes.themes`, `AccountData.addAppLogEvent`.
- Add `EngineMessageHistoryEntryLocation` wrapper.
- Add `EngineRaw*` escape-hatch typealiases (`EngineRawMessage`, `EngineRawPeer`, `EngineRawMedia`, `EngineRawMediaResource`, `EngineRawMediaResourceData`, `EngineRawItemCollectionItem`, `EngineRawItemCollectionInfo`) and `engineDeclareEncodable` forwarder.
- Drop unused `account:`/`postbox:`/`network:` parameters from several public functions and delete the dead overloads/types/functions left over: `automaticThemeShouldSwitchNow`, `cancelFreeMediaFileInteractiveFetch`, `legacyEnqueueVideoMessage`, `TelegramMediaFileReference`, plus assorted dead public TelegramCore/AccountContext SecureId entry points.
- Delete entire dead modules: `LegacyDataImport`, `TonBinding`, `SpotlightSupport`, `SvgRendering`, third-party `AppCenter`/`VectorPlus`/`SwiftColor`/`SwiftSVG`.
- Drop orphan `//submodules/Postbox` BUILD deps across 3 cleanup rounds.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-05 14:11:06 +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
|
bbad57434f
|
Various fixes
|
2026-02-02 15:54:43 +04:00 |
|
Isaac
|
3d51d83e89
|
Stories
|
2025-11-11 18:07:34 +08:00 |
|
Isaac
|
b9b38e5fbf
|
Various improvements
|
2025-10-11 00:56:21 +08:00 |
|
Ilya Laktyushin
|
a0e96582dd
|
Update API [skip ci]
|
2025-09-19 12:20:21 +04:00 |
|
Ilya Laktyushin
|
41ae916106
|
Various improvements
|
2025-06-08 18:28:49 +02:00 |
|
Isaac
|
eb3f95ea63
|
Monoforums
|
2025-05-29 02:05:13 +08:00 |
|
Isaac
|
5d2b252850
|
Monoforums
|
2025-05-27 02:19:48 +08:00 |
|
Isaac
|
60f2b98ee8
|
Monoforums
|
2025-05-26 23:38:55 +08:00 |
|
Ilya Laktyushin
|
81e11d6d36
|
Various improvements
|
2025-05-20 22:30:48 +02:00 |
|
Isaac
|
0e119dd6f1
|
[WIP] Monoforums
|
2025-05-08 20:56:55 +01:00 |
|
Isaac
|
54c5314462
|
Update conference calls
|
2025-04-01 13:56:08 +04:00 |
|
Ilya Laktyushin
|
fed338985d
|
Various improvements
|
2025-03-14 13:35:44 +04:00 |
|
Ilya Laktyushin
|
681b5c9d3a
|
Various improvements
|
2025-01-28 19:59:32 +04:00 |
|
Ilya Laktyushin
|
c73f24f5f2
|
Various improvements
|
2025-01-20 05:46:17 +04:00 |
|
Ilya Laktyushin
|
fdb4b80e27
|
Various improvements
|
2024-12-06 09:31:49 +04:00 |
|
Isaac
|
835ea7358b
|
Stars ref
|
2024-11-29 20:20:26 +04:00 |
|
Isaac
|
be83150aba
|
[WIP] Star refs
|
2024-11-28 16:13:06 +04:00 |
|
Ilya Laktyushin
|
eb4519e192
|
Various fixes
|
2024-10-06 02:03:53 +04:00 |
|
Isaac
|
fab8c09a37
|
Video chat improvements
|
2024-10-01 21:26:30 +08:00 |
|
Ilya Laktyushin
|
5941becc33
|
Stars giveaways [skip ci]
|
2024-08-23 18:44:16 +04:00 |
|
Isaac
|
4ceb3ac58b
|
Various improvements
|
2024-08-16 21:41:36 +08:00 |
|
Isaac
|
0a8ba8113e
|
Stars reactions improvements
|
2024-08-12 09:40:21 +04:00 |
|
Isaac
|
9a075fa39e
|
Refactoring
|
2024-06-12 23:04:04 +04:00 |
|
Ilya Laktyushin
|
6fc193995e
|
Various fixes
|
2024-02-15 20:00:36 -04:00 |
|
Ilya Laktyushin
|
cc4089ab07
|
Various fixes
|
2024-02-15 16:23:47 -04:00 |
|
Isaac
|
0308118446
|
[WIP] Tags
|
2024-01-02 23:15:00 +04:00 |
|
Isaac
|
7c0d5519bf
|
Various improvements
|
2023-12-28 16:55:12 +04:00 |
|
Isaac
|
0e75f18f14
|
[WIP] Saved messages
|
2023-12-25 22:58:09 +04:00 |
|
Ilya Laktyushin
|
8f51eec89b
|
Various improvements
|
2023-12-17 14:07:31 +04:00 |
|
Ilya Laktyushin
|
bb7d91cd35
|
Various fixes
|
2023-11-27 16:51:22 +04:00 |
|
Ilya Laktyushin
|
90f09a13e4
|
Various improvements
|
2023-11-22 03:24:33 +04:00 |
|
Ilya Laktyushin
|
b10556fdd0
|
Various fixes
|
2023-11-17 03:15:03 +04:00 |
|
Ilya Laktyushin
|
17a203d6b5
|
Channel recommendation improvements
|
2023-11-16 18:03:14 +04:00 |
|
Ilya Laktyushin
|
e6791ac5fd
|
Name color improvements
|
2023-10-27 17:31:13 +04:00 |
|
Ilya Laktyushin
|
ec0f8028aa
|
Various improvements
|
2023-10-18 03:34:47 +04:00 |
|
Ilya Laktyushin
|
b6f0d7ee7b
|
Name colors improvements
|
2023-10-17 02:25:15 +04:00 |
|
Ali
|
520ba51f15
|
Channel story upload UI
|
2023-09-19 15:22:18 +02:00 |
|
Ali
|
4330dc14d2
|
[WIP] Disposable debugging
|
2023-09-16 11:45:30 +02:00 |
|
Ali
|
4353823603
|
Story optimizations
|
2023-08-22 23:45:57 +04:00 |
|
Ali
|
5db3755cbf
|
Stories
|
2023-08-18 21:20:37 +04:00 |
|
Ali
|
77a5857a25
|
Sharing refactoring
|
2023-08-15 23:57:04 +04:00 |
|
Ali
|
d5561c092a
|
Stories
|
2023-07-27 23:58:53 +04:00 |
|
Ilya Laktyushin
|
709acb3739
|
Various improvements
|
2023-07-21 20:22:18 +02:00 |
|
Ali
|
8ce559ec67
|
Small caption adjustment
|
2023-07-11 23:41:07 +04:00 |
|
Ali
|
6d7f74ecc3
|
Stories
|
2023-07-11 16:27:31 +04:00 |
|
Ali
|
b47a8191c8
|
Don't clear avatar node contents on hide
|
2023-07-09 02:26:49 +04:00 |
|
Ali
|
008b52a250
|
Stories
|
2023-07-09 02:07:53 +04:00 |
|
Ali
|
a6d7f6d45d
|
Stories
|
2023-07-07 18:55:23 +04:00 |
|