54 Commits
Author SHA1 Message Date
isaac 4107263747 Postbox refactor waves 358-426
Squashed range bf01b4c..a66739c (70 commits) covering 69 waves of the
Postbox -> TelegramEngine consumer migration plus a few BUILD-dep
followups.

Notable additions to TelegramCore in this range:
- Engine typealiases: EngineRawPeerPresence, EngineRawValueBoxKey,
  EngineSimpleDictionary, EngineRawPeerView, EngineRawPostboxViewKey,
  EngineRawPreferencesView, EngineRawMessageHistoryView (+ entry/attrs/
  read-state), EngineMessageIdNamespaces, EngineHistoryViewInputAnchor,
  EngineRawUnreadMessageCountsItem, EngineRawMessageHistorySavedMessages
  IndexView, EngineRawChatInterfaceStateView, EngineRawOrderedItemList
  View, EngineRawMessageHistoryThreadIndexView, EngineRawCombinedRead
  StateView, EngineRawMessageHistoryThreadInfoView, EngineRawBasicPeer
  View, EngineRawCachedPeerDataView, EngineMessageHistoryThreadData,
  EngineViewUpdateType, EngineInitialMessageHistoryData,
  EnginePeerGroupId, EngineChatLocationInput, EngineHistoryViewInputTag.
- Engine data items: Peer.CachedData, ItemCollections.InstalledPackInfos,
  ItemCollections.InstalledPackIds.
- Engine facade: TelegramEngine.ItemCollections.allItems(namespace:).
- Free function: engineAreMediaArraysEqual forwarder.

Net effect: 65+ consumer modules drop "import Postbox"; 131 files
changed (+1386 / -1493). Build green at HEAD.
2026-05-07 07:36:30 +02:00
isaacandClaude Opus 4.7 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 cf5584e02f Collapse sibling options 2025-12-02 17:20:43 +08:00
Isaac b9b38e5fbf Various improvements 2025-10-11 00:56:21 +08:00
Isaac ee749050f0 Bot forums 2025-08-19 17:24:33 +02:00
Isaac 0e119dd6f1 [WIP] Monoforums 2025-05-08 20:56:55 +01:00
Isaac 157692bc48 Conference update 2025-04-04 22:17:28 +04:00
Isaac ebb93d8a05 Merge commit '681b5c9d3aa69629d9ccd5a023a9e104b12a3054' 2025-01-28 20:51:08 +04:00
Isaac 846e495d12 [WIP] Conference calls 2025-01-28 20:50:52 +04:00
Ilya Laktyushin 681b5c9d3a Various improvements 2025-01-28 19:59:32 +04:00
Isaac be83150aba [WIP] Star refs 2024-11-28 16:13:06 +04:00
Isaac c6cf576694 [WIP] Video chat UI 2024-09-10 18:29:05 +08:00
Isaac d2b4622ef0 [WIP] Video chat v2 2024-09-03 22:34:04 +08:00
Isaac 33e78cd5ed [WIP] Video chat screen V2 2024-08-23 19:37:33 +08:00
Isaac 05372b578c [WIP] Stars reactions 2024-07-30 23:44:19 +08:00
Isaac 9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Isaac ef12bf9ce6 Chat links and other features 2024-03-23 00:00:08 +04:00
Isaac 9ce2c2dc9e Business fixes 2024-03-01 18:32:29 +04:00
Isaac d9fec0a500 [WIP] Business 2024-02-13 20:13:40 +04:00
Ilya Laktyushin 8f38831261 Various improvements 2023-12-19 14:15:09 +04:00
Ilya Laktyushin d476aa27e8 Various fixes 2023-12-16 17:39:47 +04:00
Isaac 09e025e985 [WIP] Channel appearance 2023-12-15 22:59:33 +04:00
Ilya Laktyushin ef28f034d8 Various improvements 2023-12-13 01:00:55 +04:00
Ilya Laktyushin 168d97abdd Update API 2023-12-11 19:08:54 +04:00
Ilya Laktyushin 624f2d8e84 Various improvements 2023-12-11 14:26:22 +04:00
Ilya Laktyushin fe7687b3da Various fixes 2023-10-26 01:45:59 +04:00
Ilya Laktyushin 2107f94bc3 Various improvements 2023-10-20 21:56:12 +04:00
Ali 0f6f18bd39 Merge commit 'bd20e2f636e04e62feeefda7582ae3fddbc8c743' 2023-09-17 12:52:34 +02:00
Ali 6513c9c6e6 Story improvements 2023-09-17 12:52:22 +02:00
Ilya Laktyushin bd20e2f636 Various fixes 2023-09-17 00:01:09 +04:00
Ilya Laktyushin d0e9953d28 Story reactions improvements 2023-08-28 23:56:33 +04:00
Ilya Laktyushin 930420c0f0 Story channel selection 2023-08-28 21:34:29 +04:00
Ali 4353823603 Story optimizations 2023-08-22 23:45:57 +04:00
Ali 848e342991 Stories 2023-08-11 02:23:27 +04:00
Ali 4317ba43e4 Fix editing panel 2023-08-10 22:01:12 +04:00
Ali 12d9f973f3 Merge commit 'd6923ba45135e1666002031ff8d180617250fa3a' 2023-08-08 23:23:59 +03:00
Ali f2da1e2315 Stories 2023-08-08 23:23:47 +03:00
Ilya Laktyushin 29707a7264 Various fixes 2023-08-08 15:20:07 +02:00
Ilya Laktyushin 94599bb59e Various fixes 2023-08-06 20:37:11 +02:00
Ali ac2d963069 Stories 2023-08-04 17:43:11 +03:00
Ali 5de2af87e1 Merge commit 'c576995f14430c2da23e2c84b68d8a9507c6fa07' 2023-08-01 19:57:23 +03:00
Ali ae49ad3700 Stories 2023-08-01 19:57:08 +03:00
Ilya Laktyushin 9e18b91f57 Various fixes 2023-08-01 14:27:45 +02:00
Ilya Laktyushin b70586eb28 Story location picking 2023-07-30 15:01:25 +02:00
Ilya Laktyushin 0958fbcdf5 Various fixes 2023-07-17 15:45:55 +02:00
Ali f1a01e343b Stories 2023-07-12 20:18:01 +04:00
Ali 6d7f74ecc3 Stories 2023-07-11 16:27:31 +04:00
Ali 34c1682545 Story fixes 2023-07-09 21:14:07 +04:00
Ali 008b52a250 Stories 2023-07-09 02:07:53 +04:00
Ilya Laktyushin 9d5f5c137d Various improvements 2023-07-04 03:18:54 +02:00