Commit graph

10 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
Ali
6a548e11a6 Refactoring [skip ci] 2023-04-19 23:47:38 +04:00
Ilya Laktyushin
930e237bf1 Bot peer request support
Launch screen icon
2023-01-13 22:38:04 +04:00
Ali
a183d69534 Refactoring 2022-05-29 02:09:25 +04:00
Ilya Laktyushin
7c16a1d0eb Various fixes 2022-05-02 19:11:46 +04:00
Ilya Laktyushin
ed7cf17233 Various Improvements 2021-12-23 13:18:00 +04:00
Ilya Laktyushin
0cc01c5280 Various Improvements 2021-12-16 00:47:26 +04:00
Ilya Laktyushin
6630833866 Optimize text recognition 2021-12-10 04:04:37 +04:00
Ilya Laktyushin
06a749543d Various Fixes 2021-11-28 19:25:02 +04:00
Ilya Laktyushin
989ef5d6a0 Various Improvements 2021-11-26 21:18:40 +04:00