Commit graph

25 commits

Author SHA1 Message Date
isaac
4107263747 Postbox refactor waves 358-426
Squashed range bf01b4c..a66739c (70 commits) covering 69 waves of the
Postbox -> TelegramEngine consumer migration plus a few BUILD-dep
followups.

Notable additions to TelegramCore in this range:
- Engine typealiases: EngineRawPeerPresence, EngineRawValueBoxKey,
  EngineSimpleDictionary, EngineRawPeerView, EngineRawPostboxViewKey,
  EngineRawPreferencesView, EngineRawMessageHistoryView (+ entry/attrs/
  read-state), EngineMessageIdNamespaces, EngineHistoryViewInputAnchor,
  EngineRawUnreadMessageCountsItem, EngineRawMessageHistorySavedMessages
  IndexView, EngineRawChatInterfaceStateView, EngineRawOrderedItemList
  View, EngineRawMessageHistoryThreadIndexView, EngineRawCombinedRead
  StateView, EngineRawMessageHistoryThreadInfoView, EngineRawBasicPeer
  View, EngineRawCachedPeerDataView, EngineMessageHistoryThreadData,
  EngineViewUpdateType, EngineInitialMessageHistoryData,
  EnginePeerGroupId, EngineChatLocationInput, EngineHistoryViewInputTag.
- Engine data items: Peer.CachedData, ItemCollections.InstalledPackInfos,
  ItemCollections.InstalledPackIds.
- Engine facade: TelegramEngine.ItemCollections.allItems(namespace:).
- Free function: engineAreMediaArraysEqual forwarder.

Net effect: 65+ consumer modules drop "import Postbox"; 131 files
changed (+1386 / -1493). Build green at HEAD.
2026-05-07 07:36:30 +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
Isaac
9a4327116d Refactor 2026-03-10 00:38:36 +01:00
Ilya Laktyushin
fdb4b80e27 Various improvements 2024-12-06 09:31:49 +04:00
Ali
d892e030e0 Debugging 2023-09-25 19:47:44 +04:00
Ali
77a5857a25 Sharing refactoring 2023-08-15 23:57:04 +04:00
Ali
6e3cc4a6e9 Refactoring 2023-04-17 20:21:14 +04:00
Ali
a28ed6a7dc Topic-related fixes 2022-10-25 19:12:18 +04:00
Ilya Laktyushin
f1ccd3cf33 iPad trackpad support improvements 2022-07-27 21:49:25 +03:00
Ali
2d66131682 Refactoring 2021-08-04 01:30:57 +02:00
Ali
1a04fb4408 Refactor SyncCore back into TelegramCore 2021-07-21 21:43:20 +02:00
Ali
7bed1728bb Refactor string generation 2021-07-20 11:57:50 +02:00
Ali
2c7264dff0 Refactoring 2021-07-08 03:02:48 +04:00
Ilya Laktyushin
e673a3153f Added list view accessibility scrolling localization 2021-02-19 20:27:25 +04:00
Ilya Laktyushin
d318b657e8 Fix message in-chat preview in search
Fix top peers not being ready to display when opening search
2020-09-28 01:24:36 +04:00
Ilya Laktyushin
cefc01f28c Search filters improvements 2020-09-25 19:11:58 +03:00
Ilya Laktyushin
d59f695e6f Search filters improvements 2020-09-21 20:54:32 +03: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
Peter
10692a323e Refactor SyncCore 2019-10-21 16:58:00 +04:00
Peter
6c544eb9c2 Modal UI improvements 2019-09-16 13:21:18 +04:00
Peter
28417b4358 Remove UnreadSearchBadge 2019-08-05 23:18:36 +03:00
Peter
e9ee7d811b Try again 2019-08-05 22:49:51 +03:00
Peter
fff7ae1a22 Fix crash? enum -> struct 2019-08-05 21:41:30 +03:00
Peter
cae277d487 Refactor ShareController and related components 2019-08-05 19:30:39 +03:00