d1aa0db537
Postbox -> TelegramEngine waves 46-93 (squashed)
...
Squash of 63 commits spanning waves 46-93 (plus interspersed docs commits)
of the gradual Postbox->TelegramEngine consumer-side migration.
Scope: 139 files changed, 2123 insertions(+), 452 deletions(-).
## Themes by wave-block
**Waves 46-58 — Peer field migrations + facade additions**
Foundational EnginePeer convenience init additions (PeerReference, RenderedPeer,
SelectivePrivacyPeer). Multiple `peer: Peer` field migrations across PeerInfo,
ChatList, and SettingsUI components.
**Waves 59-73 — peer field cascade + EnginePeer wrap drops**
Series of single- to two-file peer-field migrations; consumer-side wrap
removal (`EnginePeer(peer)` -> direct EnginePeer use); `as? TelegramUser`
cast conversion to `case let .user(...)` enum match. Wave 64: RenderedPeer
convenience init. Wave 68: SelectivePrivacyPeer convenience init.
**Waves 74-83 — controller-Node bridge cleanup + small migrations**
Wave-71 shadow-pattern cleanup at controller->Node bridges. Migrations of
ChatRecentActionsController.peer (74), PeerInfoMember (75), MentionChatInputPanelItem
(76), PassportUI SecureIdAuthController (77), AccountWithInfo + ShareController
(78), peerInputActivitiesPromise (79), InactiveChannel (80), BlockedPeers (81),
openHashtag resolveSignal (82), NotificationExceptionsList (83).
**Waves 84-90 — TelegramEngine.Resources facade migrations**
Per-method Shape-A/B sweeps converting `<ctx>.account.postbox.mediaBox.X(...)`
to `<ctx>.engine.resources.X(...)`. Wave 90 was a single-commit big sweep:
40 fetchedMediaResource sites in 25 files migrated to engine.resources.fetch
facade in one atomic pass with first-pass-clean build.
Methods covered: storeResourceData, completedResourcePath, cancelInteractiveResourceFetch,
resourceRangesStatus, resourceStatus, fetch (fetchedMediaResource).
**Waves 91-92 — additional type migrations**
Wave 91: ItemListWebsiteItem.peer + RecentSessionsController enum-case payload
+ openWebSession callback Peer? -> EnginePeer?.
Wave 92: ChatListController StateHolder.EntryContext status type
MediaResourceStatus -> EngineMediaResource.FetchStatus.
**Wave 93 — speculative `import Postbox` drop sweep**
Drop import from 7 wave-touched files where it became unused; restore in 5
files where bare PeerId/Message/MediaId/StoryId references escaped the
pre-flight regex. Includes one MediaId(...) -> EngineMedia.Id(...) swap in
InAppPurchaseManager to unlock its import drop.
## Build state
Final state at squash: clean Telegram/Telegram build at debug_sim_arm64.
## Persistent-state notes
- Pre-existing WIP unchanged across the squashed range:
- build-system/bazel-rules/sourcekit-bazel-bsp submodule marker
- Untracked: build-system/tulsi/, submodules/TgVoip/, third-party/libx264/
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-25 20:48:15 +04:00
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
7b2b74e79b
Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep
...
First build-verified unused-import sweep: speculatively dropped
import Postbox from 782 consumer files (plain ^import Postbox$ lines,
excluding TelegramCore/Postbox/TelegramApi paths), iterated 18 full
project builds with --continueOnError, restored the import on every
file that failed to compile. 183 drops survived; 189 consumer modules
newly Postbox-free.
Bundled: spec + plan + C1 atomic batch drop + C2 CLAUDE.md outcome and
permanent methodology guidance under Wave-selection. The methodology
subsection captures the reusable playbook (--continueOnError is
essential, dependency graphs are deep so expect many iterations,
pattern-based preemptive restores accelerate convergence, and
CLAUDE.md's engine typealias cheat sheet arrows are migration targets
rather than typealiases in TelegramCore).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-19 23:46:13 +02:00
Ilya Laktyushin
dca6b5f145
Various improvements
2026-03-12 13:51:27 +01:00
Isaacand Isaac
9a4327116d
Refactor
2026-03-10 00:38:36 +01:00
Isaacand Isaac
1bb139ff32
Various improvements
2026-02-03 20:17:44 +08:00
Ilya Laktyushin
0d12dd29ad
Various improvements
2026-01-25 22:17:49 +04:00
Isaacand Isaac
4a13c3830a
Glass
2025-12-26 20:29:30 +08:00
Isaacand Isaac
0c3530d8a8
Glass
2025-12-10 00:16:36 +08:00
Isaacand Isaac
0055396d4d
Update
2025-11-26 23:05:30 +08:00
Ilya Laktyushin
0915a42e64
Various improvements
2025-10-16 05:30:06 +04:00
Ilya Laktyushin
914dbc46f6
Recent actions improvements
2024-04-23 12:01:28 +04:00
Isaacand Isaac
3a73b76f35
Update localization
2024-04-11 14:22:45 +04:00
Isaacand Isaac
18ee1038c6
Reaction notification settings
2024-04-08 19:47:26 +04:00
Aliand Ali
875ad20c6d
Localization
2023-07-16 18:13:43 +04:00
Aliand Ali
377148194a
Fix notification exceptions
2023-07-01 00:13:41 +02:00
Aliand Ali
2e83cef3f7
Stories
2023-06-30 02:38:24 +02:00
Aliand Ali
805cb5c610
Stories
2023-06-24 01:29:50 +03:00
Aliand Ali
d5e010b510
Stories
2023-06-23 18:13:28 +03:00
Aliand Ali
e5d948d90a
Stories
2023-06-19 00:36:06 +03:00
Aliand Ali
95947fdb99
Refactoring [skip ci]
2023-04-20 18:43:29 +04:00
Aliand Ali
6847dbb4c3
[WIP] Topics
2022-10-18 16:56:27 +04:00
Aliand Ali
02b28ee6fc
[WIP] Topics
2022-10-18 01:08:49 +04:00
Aliand Ali
db4b73ae6b
[WIP] Topics
2022-10-11 18:38:58 +04:00
Aliand Ali
dfad27f9e8
Refactoring
2022-05-29 21:09:11 +04:00
Aliand Ali
5eb4bbeaae
Refactoring
2022-05-29 19:11:14 +04:00
Aliand Ali
a183d69534
Refactoring
2022-05-29 02:09:25 +04:00
Aliand Ali
e8d124c812
Refactoring
2022-05-28 18:26:23 +04:00
Aliand Ali
333d34e4b7
Preload sounds
2022-04-20 20:07:54 +04:00
Aliand Ali
c7c24a6c60
Make all sounds cloud
2022-04-08 00:17:15 +04:00
Aliand Ali
3010d8e045
Pre-release improvements
2022-04-05 19:05:36 +04:00
Aliand Ali
ac93545965
Notification improvements
2022-04-03 23:23:15 +04:00
Aliand Ali
e93bc2efab
Pre-release improvements
2022-04-01 17:25:59 +04:00
Aliand Ali
eb9ff7beda
Notification sound updates
2022-03-31 23:49:52 +04:00
Aliand Ali
235302c7c4
Peer sound and message removal update
2022-03-30 01:22:44 +04:00
Aliand Ali
8086ea1ecb
Download list improvements
2022-02-22 22:08:42 +04:00
Ilya Laktyushin
d668c55322
Various Fixes
2022-01-12 14:10:21 +03:00
Ilya Laktyushin
24fc19f5fd
Various Improvements
2021-11-25 17:39:50 +04:00
Ilya Laktyushin
83e17029fc
Various Fixes
2021-10-28 16:04:30 +04:00
Ilya Laktyushin
4fef982671
Various settings UI improvements
2021-10-26 17:30:12 +04:00
Ilya Laktyushin
f3fe192c02
Various settings UI improvements
2021-10-26 02:55:06 +04:00
Aliand Ali
6e5c503338
Refactoring
2021-09-20 14:51:46 +03:00
Aliand Ali
3f61ff85f0
Merge branch 'master' into postbox-refactoring-1
2021-09-09 23:26:15 +04:00
Ilya Laktyushin
9528bd5941
Various chat theme fixes
2021-09-09 17:45:46 +03:00
Aliand Ali
1141e09c1b
Refactoring
2021-09-07 13:09:06 +04:00
Ilya Laktyushin
fbb241930d
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
2021-08-07 23:02:48 +03:00
Ilya Laktyushin
2e989d1369
Various Improvements
2021-08-07 22:55:08 +03:00
Aliand Ali
0a9be38425
Fix more warnings
2021-08-05 12:37:57 +02:00
Aliand Ali
ee7116ff15
Screen sharing in 1-to-1 calls
2021-07-23 18:02:47 +02:00
Aliand Ali
1a04fb4408
Refactor SyncCore back into TelegramCore
2021-07-21 21:43:20 +02:00