305 Commits

Author SHA1 Message Date
Ilya Laktyushin 14bbdca050 Various improvements 2026-04-29 20:24:29 +02:00
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 68a95f53f2 Various improvements 2026-04-24 23:21:05 +04:00
isaac f5cb1391aa Merge commit '96b1432434205e2d09d7615bde1402d762ac2b8c' 2026-04-24 11:24:47 +04:00
isaac 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
Ilya Laktyushin dbd40fe7d3 Various improvements 2026-04-22 23:03:51 +02:00
isaac 524c29cbe3 Various improvements 2026-04-22 00:32:34 +04:00
isaac b20cd3502b Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep
Wave 11: ActionSheetPeerItem de-Postboxed. Revisits wave-1 abandonment.
`postbox: Postbox, network: Network` init params collapse to
`stateManager: AccountStateManager`; avatar setPeer call routes via
`item.stateManager.postbox` / `.network`. Module never names Postbox.
Sole caller (ShareController.swift:1146) migrated in place.

Wave 12: HorizontalPeerItem de-Postboxed (same pattern). Ripples the
collapse up into ChatListSearchRecentPeersNode's public init
(`postbox:/network:` -> `stateManager:`). That module still imports
Postbox for PostboxViewKey/UnreadMessageCountsView internals but its
public surface simplifies. 3 external caller sites migrated.

Wave 13: AttachmentTextInputPanelNode minor cleanup. Module was already
Postbox-free at source level (wave 6) but carried a dead BUILD dep and
had 2 raw `peerId?.namespace == Namespaces.Peer.SecretChat` checks.
Both now use existing `PeerId.isSecretChat` extension in TelegramCore.

Wave 14: BUILD-dep sweep mirroring wave 6's source sweep. 98 modules
had `//submodules/Postbox:Postbox` (or `//submodules/Postbox`) BUILD
deps despite no source file importing Postbox since wave 6. Single
iteration, zero restores -- Bazel Swift requires source-level `import`
for symbol resolution, so redundant BUILD deps are pure metadata.

Net: 110 files, +116/-149. Build verified green (debug_sim_arm64).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 20:26:58 +02:00
Ilya Laktyushin d88a29b378 Various improvements 2026-04-18 08:41:08 +02:00
Ilya Laktyushin 1fa0c7991c Various fixes 2026-04-17 11:06:56 +02:00
Isaac 976c2de599 Temp 2026-04-14 15:33:19 +02:00
Isaac 34477605b1 Various improvements 2026-03-31 20:24:24 +08:00
Ilya Laktyushin 6df559ff97 Various fixes 2026-03-28 20:47:35 +01:00
Isaac 51d1b693d1 Updates 2026-03-27 20:16:52 +08:00
Isaac 93bf472472 Text selection 2026-03-24 22:51:44 +08:00
Ilya Laktyushin 8098f24f4e Various improvements 2026-03-22 16:41:22 +01:00
Isaac b2ca658489 Translation improvements 2026-03-22 05:17:29 +03:00
Isaac bc7858ad2b AI editing 2026-03-20 18:23:45 +01:00
Isaac a2d5c530a5 Various improvements 2026-03-18 00:27:13 +01:00
Isaac 45b1306274 Various improvements 2026-02-06 15:18:17 +04:00
Ilya Laktyushin c5a0ad267c Various improvements 2026-02-04 16:36:09 +04:00
Ilya Laktyushin 0e58f827b6 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-02-03 15:33:33 +04:00
Ilya Laktyushin 2ba1f6183e Various fixes 2026-02-03 15:27:06 +04:00
Isaac 93b10b7e11 Fix emoji pack tap 2026-02-03 01:41:59 +08:00
Ilya Laktyushin bbad57434f Various fixes 2026-02-02 15:54:43 +04:00
Ilya Laktyushin 3ea99e6eee Various fixes 2026-01-31 19:58:54 +04:00
Ilya Laktyushin d07d38df25 Various improvements 2026-01-30 00:11:52 +04:00
Ilya Laktyushin 422e3e4e24 Various improvements 2026-01-29 21:37:06 +04:00
Ilya Laktyushin 4e43b0cbb2 Various improvements 2026-01-29 17:02:59 +04:00
Ilya Laktyushin 142d59cf8f Various improvements 2026-01-27 22:24:31 +04:00
Ilya Laktyushin 0d12dd29ad Various improvements 2026-01-25 22:17:49 +04:00
Isaac 6ad2622b30 Various updates 2026-01-24 00:35:42 +08:00
Isaac e0367409f2 Fix context menus 2026-01-17 01:03:38 +08:00
Isaac 0f5a019f04 Glass updates 2026-01-11 21:01:45 +04:00
Ilya Laktyushin 2a5b83429a Various fixes 2026-01-06 14:20:06 +04:00
Isaac 4c6b273fe1 Merge commit 'ef5b8537e02f66a33dbdace5d5e30f8d69077f5f'
# Conflicts:
#	submodules/TelegramUI/Components/LiquidLens/Sources/LiquidLensView.swift
#	submodules/TelegramUI/Components/TabBarComponent/Sources/TabBarComponent.swift
2025-12-20 03:05:26 +08:00
Isaac 3486393f99 Glass 2025-12-20 03:02:08 +08:00
Ilya Laktyushin 28d4e1e171 Various improvements 2025-12-16 20:05:44 +04:00
Isaac 3982aa3f9e Merge commit '10a429b9440b5b052c0ef08c699fb122b4f962f7' into experimental-3 2025-12-10 00:17:02 +08:00
Ilya Laktyushin 95b074de14 Various fixes 2025-12-08 19:08:32 +04:00
Ilya Laktyushin 7621e2f8de Various fixes 2025-12-06 02:17:23 +04:00
Isaac 1ee7268488 Glass 2025-12-06 01:28:06 +08:00
Isaac 42f10b4fed Merge branch 'master' into glass-26 2025-12-02 17:30:38 +08:00
Ilya Laktyushin 6bc1fe1939 Various improvements 2025-12-01 19:54:58 +04:00
Isaac 0055396d4d Update 2025-11-26 23:05:30 +08:00
Ilya Laktyushin f91fbff773 Various fixes 2025-11-14 12:47:55 +04:00
Ilya Laktyushin 8897deff91 Various improvements 2025-11-04 01:04:57 +04:00
Ilya Laktyushin 4432581c77 Various improvements 2025-10-31 18:13:30 +04:00
Isaac 118d475e16 Merge commit 'ee059515d03920e0e6885023b4fec98cb2ab4b9d' 2025-10-21 18:28:48 +04:00