Commit graph

23 commits

Author SHA1 Message Date
isaac
46566e7155 Postbox -> TelegramEngine wave 15: SelectablePeerNode stateManager collapse
Applies the wave-11/12 AccountStateManager collapse pattern to
SelectablePeerNode. Module is now fully Postbox-free (source + BUILD).

- SelectablePeerNode.setup(... postbox: Postbox, network: Network, ...)
  -> setup(... stateManager: AccountStateManager, ...). Same for
  setupStoryRepost. AvatarNode.setPeer and EmojiStatusComponent are
  forwarded as stateManager.postbox / .network without naming Postbox.
- Three Namespaces.Peer.SecretChat == checks rewritten to use the
  existing PeerId.isSecretChat extension (as in wave 13).
- ShareControllerPeerGridItem.setup / setupStoryRepost and
  HorizontalPeerItem.setup call sites collapse to stateManager:.
  JoinLinkPreviewPeerContentNode uses the convenience
  setup(context: AccountContext) and is unchanged.
- Drop import Postbox in SelectablePeerNode.swift and the
  //submodules/Postbox:Postbox dep in SelectablePeerNode/BUILD.

The stateManager fallback (over the normally-preferred engine:
TelegramEngine) is used because SelectablePeerNode crosses the Share
Extension boundary: ShareControllerAccountContextExtension has no
Account, so TelegramEngine(account:) is physically unreachable there.
This matches the "rare but genuine fallback" clause of
feedback_postbox_refactor_handle.md.

Build verified green (debug_sim_arm64, 193 actions).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 20:37:41 +02:00
Isaac
0d56fcc294 Monoforums 2025-05-27 02:59:05 +08:00
Ilya Laktyushin
81e11d6d36 Various improvements 2025-05-20 22:30:48 +02:00
Ilya Laktyushin
8d7f9bf372 Various improvements 2025-02-22 19:17:36 +04:00
Isaac
eeba8a7db1 Privacy settings 2024-01-12 22:42:18 +04:00
Ilya Laktyushin
7f0aff80f0 Various improvements 2023-12-17 21:22:01 +04:00
Ilya Laktyushin
90f09a13e4 Various improvements 2023-11-22 03:24:33 +04:00
Ali
77a5857a25 Sharing refactoring 2023-08-15 23:57:04 +04:00
Ali
6a548e11a6 Refactoring [skip ci] 2023-04-19 23:47:38 +04:00
Ilya Laktyushin
980a2c47bc Various fixes 2023-02-20 04:30:51 +04:00
Ilya Laktyushin
22fae501e6 Various improvements 2022-10-19 00:34:56 +03:00
Ilya Laktyushin
3d5218b3f6 Various improvements 2022-10-19 00:23:15 +03:00
Ali
dfad27f9e8 Refactoring 2022-05-29 21:09:11 +04:00
Ali
e8d124c812 Refactoring 2022-05-28 18:26:23 +04:00
Ali
6e5c503338 Refactoring 2021-09-20 14:51:46 +03:00
Ali
31bc746984 Fix more warnings 2021-08-05 01:42:59 +02:00
Ali
2d66131682 Refactoring 2021-08-04 01:30:57 +02:00
Ilya Laktyushin
c187f16728 Various Fixes 2021-08-03 20:30:56 +03: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
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
cae277d487 Refactor ShareController and related components 2019-08-05 19:30:39 +03:00
Renamed from submodules/TelegramUI/TelegramUI/ShareControllerPeerGridItem.swift (Browse further)