Commit graph

20 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
Ali
77a5857a25 Sharing refactoring 2023-08-15 23:57:04 +04:00
Ali
c87725579d Revert "Temporarily disable -warnings-as-errors, investigate whole-module build"
This reverts commit 80380d26aa.
2021-08-04 20:45:08 +02:00
Ali
80380d26aa Temporarily disable -warnings-as-errors, investigate whole-module build 2021-08-04 01:40:18 +02:00
Ali
2d66131682 Refactoring 2021-08-04 01:30:57 +02:00
Ali
648a74003e Refactoring 2021-08-01 18:12:53 +02:00
Ali
1a04fb4408 Refactor SyncCore back into TelegramCore 2021-07-21 21:43:20 +02:00
Ilya Laktyushin
5597eacb4e Fix action sheet items update 2021-02-19 16:02:17 +04:00
Ilya Laktyushin
3b155f9d52 Various fixes 2021-02-14 12:01:17 +04:00
Ali
2805b1715c Cleanup 2020-12-17 16:36:55 +04:00
Ali
f57d6b6168 Temp 2020-02-20 18:08:36 +04:00
Ali
5faa143d6f Implement content restriction API 2019-12-08 02:52:11 +04:00
Ali
d3091f0abe Improve Dynamic Type 2019-11-26 20:44:48 +04:00
Ilya Laktyushin
61f71dfcb2 Fix serif-font bug and round font in avatar placeholders 2019-10-23 15:33:52 +04:00
Peter
10692a323e Refactor SyncCore 2019-10-21 16:58:00 +04:00
Peter
8181fbb1a6 Remove projects 2019-10-04 13:58:00 +04:00
Peter
e34bf0680a Temp 2019-08-27 00:44:36 +04:00
Peter
d701ec80e5 Temp 2019-08-26 04:28:26 +04:00
Peter
dbfb4eb8d9 Temp 2019-08-26 04:25:02 +04:00
Peter
cae277d487 Refactor ShareController and related components 2019-08-05 19:30:39 +03:00