Files
Telegram-iOS/submodules/TelegramUI/Components/Chat
isaacandClaude Opus 4.7 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
..
2026-03-28 00:11:41 +08:00
2026-03-20 18:23:45 +01:00
2026-02-11 22:04:54 +04:00
2026-04-16 01:18:22 +02:00
2026-02-10 12:58:04 +04:00
2025-12-05 02:26:17 +04:00
2026-04-20 18:55:27 +02:00
2026-04-03 22:15:42 +08:00
2026-04-14 03:33:34 +02:00
2026-03-16 18:07:12 +01:00
2026-04-20 18:55:27 +02:00
2026-02-24 19:12:54 +04:00
2026-01-25 00:31:18 +08:00
2026-01-13 19:21:49 +04:00
2026-04-10 17:21:36 +02:00
2026-01-25 00:31:18 +08:00
2025-12-26 20:29:30 +08:00
2026-01-25 00:31:18 +08:00
2025-12-22 23:28:04 +04:00
2026-03-17 11:12:58 +01:00
2026-02-19 21:53:26 +04:00