53 Commits

Author SHA1 Message Date
isaac 8408e0ae19 Postbox -> TelegramEngine waves 27-36
Consumer-sweep, facade-addition, and Peer→EnginePeer migrations:

- Wave 27: preferencesView consumer sweep
- Wave 28: resourceData consumer sweep
- Wave 29: resourceStatus consumer sweep
- Wave 30: _asStatus() bridge cleanup
- Wave 31: unused-import sweep re-run
- Wave 32: resourceStatus residue sweep
- Wave 33: loadedPeerWithId consumer sweep
- Wave 34: FoundPeer.peer Peer -> EnginePeer
- Wave 35: SendAsPeer.peer Peer -> EnginePeer
- Wave 36: ContactListPeer.peer Peer -> EnginePeer

Also includes per-wave specs, implementation plans, outcome logs, and
a CLAUDE.md wave-counter update.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 11:24:13 +04:00
isaac 939873f6f4 Postbox -> TelegramEngine wave 25: copyResourceData facades + consumer sweep
Adds two TelegramEngine.Resources.copyResourceData overloads and migrates 4 Shape-A sites
across 3 consumer files.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 04:09:42 +04:00
isaac 4879d89a92 Postbox -> TelegramEngine wave 22: storeResourceData facade + consumer sweep
Same shape as wave 21. Adds TelegramEngine.Resources.storeResourceData(id:, data:, synchronous:)
and sweeps 46 context.account.postbox.mediaBox.storeResourceData sites across 17 files.

The range-store overload and accountManager.mediaBox sites are explicitly out of scope.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 03:51:11 +04: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 b989b160c0 Postbox -> TelegramEngine wave 4: TelegramEngine.Stickers.uploadSticker
Migrates uploadSticker's public surface from (peer: Peer,
resource: MediaResource, thumbnail: MediaResource?, ...) to
(peer: EnginePeer, resource: EngineMediaResource,
thumbnail: EngineMediaResource?, ...), and UploadStickerStatus.complete
payload from CloudDocumentMediaResource to EngineMediaResource. Both
external call sites plus the cascading destructure and .standalone
sites inside MediaEditorScreen migrated atomically.

Bundled: spec + fix + plan + C1 atomic facade migration + CLAUDE.md
outcome + enum-payload inventory lesson added to wave-selection
guidance.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 23:45:48 +02:00
Isaac 16c630b946 Refactoring 2026-04-03 15:50:39 +08:00
Isaac 2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Ilya Laktyushin a4accf138a [WIP] Stickers editor 2024-04-09 07:23:03 +04:00
Ilya Laktyushin a6b5f0f96e [WIP] Stickers editor 2024-04-06 23:08:44 +04:00
Ilya Laktyushin ee2b7be5e2 [WIP] Stickers editor 2024-04-06 19:53:19 +04:00
Ilya Laktyushin 0598c49a89 Various improvements 2024-04-06 15:01:03 +04:00
Isaac efae3b90a7 Support Xcode 15.3 2024-04-02 19:16:00 +04:00
Ilya Laktyushin 6906df0243 [WIP] Stickers editor 2024-03-15 10:55:40 +04:00
Ilya Laktyushin 3bdcb7f223 [WIP] Sticker editor 2024-03-09 03:19:31 +04:00
Ali 6a548e11a6 Refactoring [skip ci] 2023-04-19 23:47:38 +04:00
Ilya Laktyushin 9abee7dc1f Various fixes 2023-03-28 05:18:49 +04:00
Ilya Laktyushin 8f181490e2 Improve media playback rate controls 2023-02-10 19:34:45 +04:00
Ilya Laktyushin c60d85373b Update API 2023-02-10 14:12:55 +04:00
Ali b92d21f9d7 Emoji UI improvements 2023-01-24 14:25:26 +01:00
Ilya Laktyushin 1c0af395db Various improvements 2022-11-08 15:11:37 +04:00
Ilya Laktyushin 05f2bf7b85 Various fixes 2022-07-25 05:36:30 +03:00
Ali de23adfd6e Merge commit '5a627882894aea55458a0cdfe8606cac7d2603f0'
# Conflicts:
#	Telegram/Telegram-iOS/en.lproj/Localizable.strings
#	submodules/TelegramCore/Sources/TelegramEngine/Payments/AppStore.swift
2022-07-19 03:39:47 +02:00
Ali c141531c7b Animated emoji improvements 2022-07-19 03:38:07 +02:00
Ilya Laktyushin 3fed69ee0f Various fixes 2022-07-14 20:46:23 +02:00
Ali ed59ead31e [WIP] Animated emoji 2022-07-08 19:53:20 +02:00
Ali 131be5aaab Input node improvements 2022-06-28 22:54:05 +02:00
Ali cff972c968 Sticker refactoring 2022-06-08 20:44:14 +04:00
Ilya Laktyushin 451b9d92d1 Various fixes 2022-04-28 02:35:57 +04:00
Ilya Laktyushin 71bde57b6a Various Improvements 2022-04-23 05:28:29 +04:00
Ilya Laktyushin 7da0357b6d Initial implementation of attachment menu 2022-02-11 19:38:28 +03:00
Ilya Laktyushin bbc082e991 Reimplement video stickers 2022-01-27 13:06:44 +03:00
Ilya Laktyushin 87c6d4fdfe Various Improvements 2022-01-25 19:59:22 +03:00
Ilya Laktyushin 5154356e38 Various Improvements 2022-01-22 20:54:32 +03: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 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
Ilya Laktyushin 3519a216c5 Password remembering improvements 2021-07-09 20:02:42 +03:00
Ilya Laktyushin 21b8a066c2 Fix imported sticker pack link autoformatting 2021-07-07 02:33:32 +03:00
Ilya Laktyushin 8990df8e70 Add forwarding to multiple people simultaneously 2021-06-30 00:17:20 +03:00
Ilya Laktyushin 80426cdf8f Various Fixes 2021-06-25 15:40:14 +04:00
Ilya Laktyushin 85e0906828 Various Fixes 2021-06-18 20:13:38 +03:00
Ilya Laktyushin 0c246e83b6 Stickers Import Improvements 2021-06-18 15:15:36 +03:00
Ilya Laktyushin ec915d2620 Add option to simulate stickers import 2021-06-18 08:49:39 +03:00
Ilya Laktyushin d8e36f149f Stickers Import Improvements 2021-06-18 07:59:10 +03:00
Ilya Laktyushin 920829490a Stickers Import Improvements 2021-06-18 04:21:15 +03:00
Ilya Laktyushin d646ee3492 Various Fixes 2021-06-17 23:14:23 +03:00
Ilya Laktyushin 605e5d07fe Stickers Import Improvements 2021-06-15 19:36:11 +03:00
Ilya Laktyushin 1c1e44833e Stickers Import Improvements 2021-06-14 23:23:11 +03:00