37 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 3985c538a8 Update localization 2025-05-26 01:05:11 +02:00
Ilya Laktyushin 81e11d6d36 Various improvements 2025-05-20 22:30:48 +02:00
Isaac 0e119dd6f1 [WIP] Monoforums 2025-05-08 20:56:55 +01: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 bb7d91cd35 Various fixes 2023-11-27 16:51:22 +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
Ilya Laktyushin 03af42a9f1 Revert photo dimensions thing 2023-03-04 15:07:20 +04:00
Ilya Laktyushin 93f9777b36 Various fixes 2022-10-22 14:57:00 +03:00
Ilya Laktyushin 02e53fd67c Forum sharing fixes 2022-10-20 05:29:11 +03: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
Ilya Laktyushin ad2b8811c1 Topics search 2022-10-15 17:44:04 +03:00
Ilya Laktyushin f1ccd3cf33 iPad trackpad support improvements 2022-07-27 21:49:25 +03:00
Ilya Laktyushin 25a09c5451 Add manual account deletion 2022-06-28 22:22:21 +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
Ilya Laktyushin 498dd0bbec Various Improvements 2021-03-20 16:13:57 +05:00
Ilya Laktyushin 249b684e64 Switch to new check node implementation 2021-02-08 21:55:41 +04:00
Ilya Laktyushin e0aacc155c Voice Chat UI improvements 2020-12-04 20:30:51 +04:00
Ilya Laktyushin 6b75d36548 Voice Chat UI improvements 2020-11-30 03:38:41 +04:00
Ali 1db12483cc WIP 2020-11-27 22:12:59 +04:00
Ilya Laktyushin cefc01f28c Search filters improvements 2020-09-25 19:11:58 +03:00
Ali 2334adfa2b Comments update 2020-09-08 19:10:33 +01:00
Ali b8c46f069f UI Improvements 2020-03-27 17:49:45 +04:00
Ali f57d6b6168 Temp 2020-02-20 18:08:36 +04:00
Ali cce22d7f0b Main project builds 2020-02-19 16:59:06 +04:00
Ali 5faa143d6f Implement content restriction API 2019-12-08 02:52:11 +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 284db5aba8 Use peer name localization 2019-10-11 16:05:35 +04:00
Peter 6c544eb9c2 Modal UI improvements 2019-09-16 13:21:18 +04:00
Peter cae277d487 Refactor ShareController and related components 2019-08-05 19:30:39 +03:00