22 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
Isaac 7b2b74e79b Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep
First build-verified unused-import sweep: speculatively dropped
import Postbox from 782 consumer files (plain ^import Postbox$ lines,
excluding TelegramCore/Postbox/TelegramApi paths), iterated 18 full
project builds with --continueOnError, restored the import on every
file that failed to compile. 183 drops survived; 189 consumer modules
newly Postbox-free.

Bundled: spec + plan + C1 atomic batch drop + C2 CLAUDE.md outcome and
permanent methodology guidance under Wave-selection. The methodology
subsection captures the reusable playbook (--continueOnError is
essential, dependency graphs are deep so expect many iterations,
pattern-based preemptive restores accelerate convergence, and
CLAUDE.md's engine typealias cheat sheet arrows are migration targets
rather than typealiases in TelegramCore).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 23:46:13 +02:00
Ilya Laktyushin 8f1e024aef Various fixes 2026-04-15 23:12:53 +02:00
Ilya Laktyushin b65a684431 Various improvements 2025-09-19 22:48:59 +04:00
Ilya Laktyushin 43faf7619d Fact check fixes 2024-05-20 20:00:50 +04:00
Ilya Laktyushin 2d357afd12 [WIP] Stickers editor 2024-04-11 14:15:37 +04:00
Isaac 5193b54aa9 Support link pattern 2023-12-19 20:14:15 +04:00
Isaac 09e025e985 [WIP] Channel appearance 2023-12-15 22:59:33 +04:00
Ali 5ab45be3c7 Implement code highlight colors 2023-11-02 20:19:24 +04:00
Ilya Laktyushin 5a4a52e710 Cleanup 2023-10-31 16:41:30 +04:00
Ali 31e5158b61 Fix quote block pattern alpha gradient 2023-10-29 23:06:47 +04:00
Ali 127792bdd2 Fix sticker reply and forward panels 2023-10-26 16:39:41 +04:00
Ilya Laktyushin 752117191d Fix name colors order 2023-10-25 23:51:15 +04:00
Ilya Laktyushin 7cb8f9739b Name color improvements 2023-10-25 13:33:51 +04:00
Ilya Laktyushin 08b76943c2 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2023-10-25 12:33:57 +04:00
Ilya Laktyushin c444628fbe Name color improvements 2023-10-25 12:32:54 +04:00
Ali 5452f275b4 Add light context menu theme 2023-10-24 18:39:41 +04:00
Ali ae3d0be81f Fix background progress 2023-10-20 22:13:40 +04:00
Ali c45607ffd6 Refactor url handling 2023-10-20 21:51:45 +04:00
Ali dd46ccd6ed Progress indicators 2023-10-20 14:32:12 +04:00
Ali e732ec44a7 Fix scrolling 2023-10-20 02:18:33 +04:00
Ali 53664ed268 Reply patterns 2023-10-20 00:58:40 +04:00