Commit graph

9 commits

Author SHA1 Message Date
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
ed655a3945 Various fixes 2024-09-26 19:52:28 +04:00
Ilya Laktyushin
d0fe102210 Various fixes 2024-09-25 20:37:17 +04:00
Ilya Laktyushin
f5092b8d8d Web app improvements 2024-07-02 21:03:22 +04:00
Ilya Laktyushin
613bba57c2 Web app improvements 2024-07-02 08:47:03 +04:00
Isaac
378b7e8ed5 Message preview improvements 2024-05-17 17:10:19 +04:00
Isaac
8736981248 Message effects improvements 2024-05-13 20:14:15 +04:00
Isaac
8e043a3a7d Various improvements 2024-04-23 12:57:38 +04:00
Ilya Laktyushin
713336a13f Giveaway improvements 2023-10-08 14:12:39 +04:00