100 Commits

Author SHA1 Message Date
isaac 55b2b47797 Various improvements 2026-04-28 00:44:54 +04: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
isaac 53f023ea52 Postbox -> TelegramEngine wave 21: completedResourcePath facade + consumer sweep
Combined wave-19+wave-20 shape. Adds TelegramEngine.Resources.completedResourcePath(id:, pathExtension:)
facade and sweeps 29 consumer sites across 14 files in one atomic commit.

Shape A/B migrated. Shape C (5 sites with raw account: Account) and Shape D
(3 sites with local postbox: Postbox field) intentionally skipped — need
module-scoped init-signature rework rather than per-site sweep.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 03:19:30 +04:00
Ilya Laktyushin 67f45ba06d Various improvements 2026-03-24 06:54:30 +01:00
Ilya Laktyushin 2a55559f82 Various fixes 2026-03-20 15:46:56 +01:00
Ilya Laktyushin c32f645f5e [WIP] Polls 2026-03-17 16:32:49 +01:00
Ilya Laktyushin 6519b5c84d [WIP] Polls 2026-03-17 11:12:58 +01:00
Ilya Laktyushin e81e7c6897 Formatted date support 2026-02-06 14:24:03 +04:00
Ilya Laktyushin 412e02ef00 Gift auctions 2025-11-12 04:46:02 +04:00
Ilya Laktyushin a0e96582dd Update API [skip ci] 2025-09-19 12:20:21 +04:00
Isaac b625243040 Various improvements 2025-07-29 15:48:11 +02:00
Ilya Laktyushin 80cd8f7b32 Various improvements 2025-03-11 06:49:43 +04:00
Ilya Laktyushin 8d7f9bf372 Various improvements 2025-02-22 19:17:36 +04:00
Ilya Laktyushin d167aa4b0e Update API [skip ci] 2025-02-18 10:09:58 +04:00
Ilya Laktyushin 340075d4f1 Various improvements 2025-01-28 23:37:17 +04:00
Ilya Laktyushin 2bf24b2bd9 Gift web preview 2025-01-07 20:34:57 +04:00
Ilya Laktyushin 6e850130fd Update API [skip ci] 2024-12-26 07:27:14 +04:00
Ilya Laktyushin dce651616e Update API [skip ci] 2024-12-18 21:40:23 +04:00
Ilya Laktyushin 87b2d223f8 Ads and codes improvements 2024-09-20 18:35:17 +04:00
Ilya Laktyushin 2bf11a6279 Various improvements 2024-08-09 17:43:47 +02:00
Isaac a4b4bb5a82 [WIP] Bot previews 2024-07-16 19:12:26 +08:00
Isaac 8af8de7096 Reaction experiments 2024-06-28 19:36:15 +02:00
Isaac 779b583927 Merge commit '7d5d9ba7ba8ea6e2412ed633d80709caaabe992e'
# Conflicts:
#	submodules/TelegramUI/Components/Chat/ChatMessageAttachedContentNode/Sources/ChatMessageAttachedContentNode.swift
2024-06-24 18:20:30 +01:00
Isaac 6807abf42c Various improvements 2024-06-24 18:19:53 +01:00
Ilya Laktyushin 40a4183095 Paid media content 2024-06-18 18:57:32 +04:00
Ilya Laktyushin 5d2377bcb7 Various improvements 2024-06-15 20:34:07 +04:00
Ilya Laktyushin 5470ba80ec Various improvements 2024-06-07 09:51:45 +04:00
Isaac 608893e317 Message effects improvements 2024-05-14 15:48:07 +04:00
Isaac 16faaa4575 [WIP] Send message effects 2024-05-03 22:56:50 +04:00
Ilya Laktyushin b13397cecb Various fixes 2024-04-15 20:48:37 +04:00
Ilya Laktyushin 2d357afd12 [WIP] Stickers editor 2024-04-11 14:15:37 +04:00
Ilya Laktyushin 58b5550796 Various fixes 2024-04-09 17:12:54 +04:00
Ilya Laktyushin 70eef8ecac [WIP] Stickers editor 2024-04-09 00:50:37 +04:00
Ilya Laktyushin 06d5377bd4 Update API 2024-04-04 02:41:40 +04:00
Ilya Laktyushin 03e318fef3 Improve pic display for ads 2024-03-29 18:30:56 +04:00
Ilya Laktyushin 9bb28dcc26 Various fixes 2024-03-26 17:22:00 +04:00
Ilya Laktyushin 9166178440 Various improvements 2024-03-24 15:14:58 +04:00
Ilya Laktyushin be9463e80b Various fixes 2024-03-04 17:52:17 +04:00
Isaac 46881c65ca [WIP] Business 2024-02-16 22:52:01 +04:00
Isaac 98ebf6ddb4 Update ad close button 2024-02-06 15:27:36 +04:00
Ilya Laktyushin 011189e98f Fix ad and contact buttons layout 2024-02-02 23:44:46 +04:00
Isaac bd4a534097 Various improvements 2024-02-02 14:32:13 +01:00
Ilya Laktyushin cf951c7993 Fix build 2024-01-29 00:54:20 +04:00
Ilya Laktyushin fd01d8d45f Merge branch 'beta' 2024-01-28 23:48:48 +04:00
Ilya Laktyushin 089ef27b69 Tune contact bubble button insets 2024-01-28 23:30:03 +04:00
Isaac fc21b289a7 Various improvements 2024-01-26 20:14:16 +01:00
Isaac 7314790773 Merge commit '3b538509e83eb520f3ccb6ecdd93fb3c16742809' 2024-01-26 15:33:03 +01:00
Isaac 953e1598f7 [WIP] Release changes 2024-01-26 15:33:01 +01:00
Ilya Laktyushin 02e7d5bf99 Add pinch-to-zoom for attached media 2024-01-25 14:45:23 +04:00
Isaac 0cab0ca678 [WIP] Saved messages 2024-01-23 17:52:21 +01:00