Commit graph

186 commits

Author SHA1 Message Date
Ilya Laktyushin
12d5336af9 Fix 2026-04-27 01:39:39 +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
22df2dbdb9 Various fixes 2026-04-14 03:33:34 +02:00
Ilya Laktyushin
e3c84fce71 Various fixes 2026-02-27 14:34:18 +04:00
Ilya Laktyushin
d9d1210c1d Various improvements 2026-02-19 21:53:26 +04:00
Ilya Laktyushin
28d4e1e171 Various improvements 2025-12-16 20:05:44 +04:00
Isaac
b8ac955792 Update 2025-07-25 17:40:09 +02:00
Isaac
6c4070eb52 Serialization update 2025-02-14 19:11:58 +04:00
Ilya Laktyushin
ef6c097f6f Various improvements 2025-01-18 13:44:42 +04:00
Isaac
4bed1703a2 Emoji in chat folders 2024-12-25 00:17:19 +08:00
Isaac
931e34e1bd Temp 2024-11-27 17:37:21 +04:00
Ilya Laktyushin
1ef71d2f46 Various improvements 2024-11-08 22:40:20 +01:00
Ilya Laktyushin
85b6a8ffe9 Update API [skip ci] 2024-11-08 15:45:48 +01:00
Isaac
b3e0d64b37 Video improvements 2024-10-29 00:40:32 +01:00
Isaac
caf10fe889 Various improvements 2024-10-25 11:24:06 +02:00
Isaac
da45de818a Stars reactions improvements 2024-08-13 21:14:59 +08:00
Isaac
03eeb3515c Star reaction improvements 2024-08-09 18:45:53 +04:00
Ilya Laktyushin
df311bb022 Stars subscriptions 2024-08-06 22:40:17 +02:00
Isaac
16b72bc8ed Update localization 2024-07-26 00:40:31 +08:00
Ilya Laktyushin
345616704a Browser improvements 2024-07-22 07:11:46 +04:00
Isaac
8af8de7096 Reaction experiments 2024-06-28 19:36:15 +02:00
Ilya Laktyushin
c0489e251b Add support for stars withdrawal timeout 2024-06-16 15:51:21 +04:00
Ilya Laktyushin
70eef8ecac [WIP] Stickers editor 2024-04-09 00:50:37 +04:00
Ilya Laktyushin
a6b5f0f96e [WIP] Stickers editor 2024-04-06 23:08:44 +04:00
Ilya Laktyushin
2253fa1550 Various improvements 2024-03-26 14:23:18 +04:00
Ilya Laktyushin
6906df0243 [WIP] Stickers editor 2024-03-15 10:55:40 +04:00
Isaac
8a0fbe7f21 Various improvements 2024-01-30 13:21:18 +01:00
Isaac
8479dd4a6e Saved messges improvements 2024-01-29 12:12:41 +01:00
Isaac
dc7541065d Tag saved message 2024-01-16 21:14:24 +04:00
Isaac
4b16494e20 [WIP] Saved messages 2023-12-28 00:20:23 +04:00
Isaac
6730f7d2fb Various improvements 2023-12-20 22:17:06 +04:00
Isaac
58eb4ce2bb Modernize color changed toast 2023-11-27 17:05:20 +04:00
Ilya Laktyushin
c8d483a2c7 Various fixes 2023-11-27 15:25:17 +04:00
Isaac
b631780d00 Modernize quick reaction 2023-11-24 01:21:36 +04:00
Ilya Laktyushin
65ffd81904 Update API 2023-11-09 03:25:45 +04:00
Ali
4f23fa6e09 Channel reactions 2023-11-07 17:58:36 +04:00
Ilya Laktyushin
54489f428a Various improvements 2023-10-24 11:57:42 +04:00
Ilya Laktyushin
df505a7b62 Various improvements 2023-10-22 13:52:38 +04:00
Ilya Laktyushin
4f183fa7fe Name colors improvements 2023-10-17 01:41:53 +04:00
Ilya Laktyushin
0a2532b802 Front camera torch for video recording 2023-09-29 17:14:11 +04:00
Ilya Laktyushin
f13b1da0bb Web app improvements 2023-09-09 17:34:49 +04:00
Ilya Laktyushin
266f9e5ad8 Various improvements 2023-09-05 16:56:48 +04:00
Ilya Laktyushin
4c4080f5cb Various improvements 2023-09-05 14:07:48 +04:00
Ilya Laktyushin
9fd6b9369f Premium story reactions info 2023-08-30 14:29:49 +04:00
Ali
458a153bad Stories 2023-08-10 00:13:20 +03:00
Ilya Laktyushin
74faad7a03 Various improvements 2023-08-05 15:32:12 +02:00
Ali
29f29e927e Stories 2023-07-25 22:08:46 +04:00
Ilya Laktyushin
709acb3739 Various improvements 2023-07-21 20:22:18 +02:00
Ali
6f084010d8 Stories 2023-07-13 23:51:40 +04:00
Ali
f1a01e343b Stories 2023-07-12 20:18:01 +04:00