Commit Graph
228 Commits
Author SHA1 Message Date
isaacisaacClaude 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
isaacisaacClaude Opus 4.7
8408e0ae19 Postbox -> TelegramEngine waves 27-36
Consumer-sweep, facade-addition, and Peer→EnginePeer migrations:

- Wave 27: preferencesView consumer sweep
- Wave 28: resourceData consumer sweep
- Wave 29: resourceStatus consumer sweep
- Wave 30: _asStatus() bridge cleanup
- Wave 31: unused-import sweep re-run
- Wave 32: resourceStatus residue sweep
- Wave 33: loadedPeerWithId consumer sweep
- Wave 34: FoundPeer.peer Peer -> EnginePeer
- Wave 35: SendAsPeer.peer Peer -> EnginePeer
- Wave 36: ContactListPeer.peer Peer -> EnginePeer

Also includes per-wave specs, implementation plans, outcome logs, and
a CLAUDE.md wave-counter update.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 11:24:13 +04:00
isaacandisaac 7919556375 Postbox -> TelegramEngine wave 20: shortLivedResourceCachePathPrefix consumer sweep
22 call sites across 16 consumer modules migrated to the wave-19 facade:
  context.account.postbox.mediaBox.shortLivedResourceCachePathPrefix(resource.id)
  ->
  context.engine.resources.shortLivedResourceCachePathPrefix(id: EngineMediaResource.Id(resource.id))

ItemListStickerPackItem additionally drops the wave-18 `let rawResource` intermediate.

Skipped: MediaEditorComposerEntity.swift:245 (uses local `postbox:` init-param,
not `context.account.postbox`; needs its own wave). No modules become Postbox-free
this wave — each still has other Postbox usage.
2026-04-21 02:27:39 +04:00
Ilya Laktyushin b138b9f549 Stickers & emoji search pagination 2026-04-19 18:32:40 +02:00
IsaacandIsaac d147c63b68 Refactoring 2026-04-07 11:31:22 +02:00
IsaacandIsaac 8422b48216 Glass gallery 2026-01-27 21:04:08 +08:00
IsaacandIsaac ca6fdc1629 Glass 2026-01-25 00:31:18 +08:00
IsaacandIsaac 7acf2b0b41 Forum improvements 2025-11-11 20:05:29 +08:00
IsaacandIsaac b9b38e5fbf Various improvements 2025-10-11 00:56:21 +08:00
Ilya Laktyushin 4657ac752d Various improvements 2025-09-27 01:27:56 +04:00
Ilya Laktyushin 5d43f14ccb Various improvements 2025-09-23 16:04:39 +04:00
Ilya Laktyushin fb7b93fbdc Various improvements 2025-09-22 07:45:25 +04:00
Ilya Laktyushin 4b8d87b05f Merge commit '202274073fa5df7a5fbaa4621e3da054a1a0284b' into call-messages 2025-09-17 22:05:40 +04:00
Ilya Laktyushin cb523192d5 Various improvements 2025-09-17 20:58:42 +04:00
IsaacandIsaac 5b15e139fd Fix reaction selection glitches
(cherry picked from commit 7d5185ed4d)
2025-07-09 17:48:15 +04:00
IsaacandIsaac a23deded22 Cleanup 2025-06-28 19:48:34 +02:00
IsaacandIsaac 1cd1c1e0b3 Merge branch 'temp-ppp'
# Conflicts:
#	submodules/TelegramUI/Sources/AccountContext.swift
2025-03-14 15:37:17 +01:00
IsaacandIsaac daaa6a7e2e IOSurface experiment 2025-03-14 15:34:16 +01:00
IsaacandIsaac 383ab9e479 Various improvements 2025-03-07 17:52:50 +01:00
IsaacandIsaac faa765b601 Various optimizations 2025-03-04 14:13:07 +01:00
IsaacandIsaac 6c4070eb52 Serialization update 2025-02-14 19:11:58 +04:00
IsaacandIsaac 47c35dff70 Merge commit 'd92c751b6f739ac43426b2380a69c686ad3787b4' 2024-12-23 21:43:40 +08:00
IsaacandIsaac d9957ecf4e Custom vibrance effect 2024-12-23 21:43:25 +08:00
Ilya Laktyushin 5451053195 Various improvements 2024-12-22 17:16:14 +04:00
Ilya Laktyushin c4013c3df6 Various improvements 2024-11-29 00:28:50 +04:00
IsaacandIsaac 113733d92d Fix reaction search 2024-09-03 21:23:13 +08:00
IsaacandIsaac bdfe639f3e Various improvements 2024-08-20 18:16:59 +08:00
IsaacandIsaac 4ceb3ac58b Various improvements 2024-08-16 21:41:36 +08:00
IsaacandIsaac 03ee1379b2 Adjust stars animation 2024-08-12 12:20:02 +04:00
IsaacandIsaac 17408cbb9a Add star background effect 2024-08-09 19:38:30 +04:00
IsaacandIsaac 6e13876636 Star reactions 2024-08-09 16:55:53 +04:00
IsaacandIsaac 1655f69f08 Adjust star size 2024-08-06 16:17:58 +04:00
IsaacandIsaac 3ff98fd2a8 [WIP] Star reactions 2024-08-06 15:00:29 +04:00
IsaacandIsaac d820ad65e1 Stars reactions 2024-08-02 21:15:11 +08:00
IsaacandIsaac 05372b578c [WIP] Stars reactions 2024-07-30 23:44:19 +08:00
IsaacandIsaac 8af8de7096 Reaction experiments 2024-06-28 19:36:15 +02:00
IsaacandIsaac ad1ddf65c0 Stars reaction test [skip ci] 2024-06-27 14:39:09 +02:00
IsaacandIsaac 47555ae97d Update localization 2024-06-17 21:16:22 +04:00
IsaacandIsaac 9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
IsaacandIsaac 667aa0349a [WIP] Edit message preview 2024-05-26 18:59:44 +04:00
IsaacandIsaac fe788ed9ea Message preview and effect improvements 2024-05-21 00:02:55 +04:00
IsaacandIsaac 5545bdd978 Improvements 2024-05-17 18:12:37 +04:00
IsaacandIsaac feb80f5922 Fix emoji search indication 2024-05-14 15:56:32 +04:00
IsaacandIsaac 7ef63a81df [WIP] Message effects 2024-05-10 20:57:12 +04:00
IsaacandIsaac 16faaa4575 [WIP] Send message effects 2024-05-03 22:56:50 +04:00
IsaacandIsaac be5bec8680 Merge commit 'e7df32ca3df12b65d657d0b76605423410e1d1e1'
# Conflicts:
#	submodules/TelegramUI/Sources/Chat/ChatControllerLoadDisplayNode.swift
2024-04-30 23:41:16 +04:00
IsaacandIsaac e0c2800e8f [WIP] Message context menu 2024-04-30 23:40:55 +04:00
Ilya Laktyushin 2b6a8e202e Various fixes 2024-04-30 12:58:20 +04:00
Ilya Laktyushin cf49acb4aa Various fixes 2024-04-29 17:45:32 +04:00
IsaacandIsaac 8e043a3a7d Various improvements 2024-04-23 12:57:38 +04:00