Commit Graph
15 Commits
Author SHA1 Message Date
Ilya Laktyushin e3bf0cd30c Various fixes 2026-04-23 01:26:13 +02:00
isaacisaacClaude 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
IsaacIsaacClaude Opus 4.7
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
IsaacandIsaac 0055396d4d Update 2025-11-26 23:05:30 +08:00
IsaacandIsaac b9b38e5fbf Various improvements 2025-10-11 00:56:21 +08:00
IsaacandIsaac b4a0e8809c Temp 2025-08-15 09:18:26 +02:00
IsaacandIsaac c264378b6a Monoforums 2025-05-23 00:37:21 +08:00
Ilya Laktyushin 2de3528852 Various improvements 2024-08-11 21:48:30 +02:00
IsaacandIsaac 9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
AliandAli b6894b8081 Stories 2023-07-12 22:55:22 +04:00
AliandAli 008b52a250 Stories 2023-07-09 02:07:53 +04:00
AliandAli 7223edc9cd Experimental layout 2023-06-26 19:09:19 +03:00
AliandAli 42a6978ffd Add close friends parameter 2023-06-24 16:13:03 +03:00
AliandAli a0817a831b Avatar story indicator counters 2023-06-24 15:25:11 +03:00
AliandAli 6aa3e47ee8 Stories 2023-06-20 20:03:16 +03:00