11 Commits

Author SHA1 Message Date
Ilya Laktyushin ea090a6858 Various improvements 2026-04-28 23:53:26 +02: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 f7f3b92fa7 Various improvements 2025-12-23 22:25:44 +04:00
Ilya Laktyushin 2edce5ebf2 Alerts 2025-12-22 00:19:11 +04:00
Ilya Laktyushin f62efe1ed6 Various fixes 2024-08-02 01:44:08 +02:00
Isaac dcfc4d9364 Input state updates 2024-06-07 19:34:28 +04:00
Ali 6e3cc4a6e9 Refactoring 2023-04-17 20:21:14 +04:00
Ilya Laktyushin 9abee7dc1f Various fixes 2023-03-28 05:18:49 +04:00
Ilya Laktyushin 1e14a6c687 Add text link editing
Auto-paste url from pasteboard if any
2023-03-23 20:03:17 +04:00
Ilya Laktyushin 3fed69ee0f Various fixes 2022-07-14 20:46:23 +02:00
Ilya Laktyushin 9994bb44ad Further attach menu refinements 2022-02-13 04:11:04 +03:00