20 Commits
Author SHA1 Message Date
Ilya Laktyushin 7a7333edab Various improvements 2026-05-05 14:57:06 +02:00
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
IsaacandClaude 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
Ilya Laktyushin 189d25c32e Update API 2026-02-10 12:58:04 +04:00
Ilya Laktyushin 2bba31bcdf Alerts 2025-12-22 23:28:04 +04:00
Ilya Laktyushin 0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00
Isaac c7a2fe5d3e Update to iOS 13 2025-06-11 16:59:53 +08:00
Isaac 9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Ilya Laktyushin f3e75ca2e3 Various fixes 2024-05-21 18:15:14 +04:00
Isaac 5123b841c3 - custom poll emoji input
- avatars in forward info
- ban user sheet
2024-04-16 23:42:39 +04:00
Isaac 7966993955 Business fixes 2024-03-05 15:32:59 +04:00
Isaac 1db0db3929 Business fixes 2024-03-01 15:18:46 +04:00
Isaac 42b14666a2 Business 2024-03-01 00:09:39 +04:00
Isaac 8446fd3ab1 Business fixes 2024-02-28 19:22:43 +04:00
Isaac 6b199c3fd0 [WIP] Business 2024-02-27 17:23:41 +04:00
Isaac 0ba75f81de [WIP] Business 2024-02-26 18:43:15 +04:00
Isaac 50339b3c4c [WIP] Business 2024-02-23 23:12:28 +04:00
Isaac f259829c8a [WIP] Business 2024-02-20 14:45:25 +04:00
Isaac 46881c65ca [WIP] Business 2024-02-16 22:52:01 +04:00
Isaac d9fec0a500 [WIP] Business 2024-02-13 20:13:40 +04:00