Telegram-iOS/submodules/TelegramCore/Sources
isaac 2ac8a490b0 Postbox -> TelegramEngine waves 94-102 (squashed)
Adds AccountManagerResources facade in TelegramCore mirroring
TelegramEngine.Resources, drains the entire accountManager-side
mediaBox refactor across consumer modules, and validates the
Shape-C/D handle-migration pattern (account: Account ->
engine: TelegramEngine) on three classes.

Wave 94 (AccountManagerResources facade + 8 sites): new
AccountManagerResources class in TelegramCore with
storeResourceData, completedResourcePath (resource + id overloads),
status (with approximateSynchronousValue), moveResourceData,
fetch. Migrate EditThemeController (5 storeResourceData + 2
completedResourcePath) and WebBrowserSettingsController (1
storeResourceData).

Wave 95 (10 sites): WallpaperUtils.swift sweep, 5 distinct
storeResourceData patterns, replace_all on the two repeated ones.

Wave 96 (7 sites): theme controller triple — TPC (1 store + 2
moveResourceData), TPCN (1 status + 1 fetch + closure type
MediaResourceStatus -> EngineMediaResource.FetchStatus + rename
account local to engine), TAC (1 completedResourcePath + 1 store).

Wave 97 (9 sites): WallpaperGalleryController.swift, 4
completedResourcePath + 5 storeResourceData via replace_all.

Wave 98 (2 files): WallpaperGallery status-type cascade
Promise<MediaResourceStatus> -> Promise<EngineMediaResource.FetchStatus>
across WallpaperGalleryItem.swift + WallpaperGalleryController.swift.
Drops cosmetic `_asStatus()` unwrap.

Wave 99 (2 facade extensions + 7 sites): adds
AccountManagerResources.data() and approximateSynchronousValue
to engine.resources.status(). Migrates OpenResolvedUrl (data +
storeResourceData with .complete -> .isComplete cascade),
SettingsThemeWallpaperNode (paired engine + accountManager
status), WallpaperUploadManager, OpenChatMessage,
LiveChatReactionStreamView.

Wave 100 (Shape-C/D, free function): legacyWebSearchItem
account: Account -> engine: TelegramEngine. 4 files.

Wave 101 (Shape-C/D, small class): VerticalListContextResults
ChatInputPanelItem stored field migration. 2 files. Drops
`|> map(EngineMediaResource.FetchStatus.init)` redundancy.

Wave 102 (Shape-C/D, medium class with weak-context retention):
SharedMediaPlayer account: Account -> engine: TelegramEngine.
Engine field is intentionally a strong handle since the class
stores context as `weak var`. 2 files.

After this squash the accountManager-side mediaBox refactor is
essentially complete; only Postbox-protocol-blocked
cachedResourceRepresentation triple remains as the foundational
deferred item.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 02:46:44 +04:00
..
Account Update API 2026-04-16 01:18:22 +02:00
AccountManager Postbox -> TelegramEngine waves 94-102 (squashed) 2026-04-26 02:46:44 +04:00
ApiUtils Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
MacOS Refactor constructor use sites for types 480-499 to struct pattern 2026-01-18 23:47:18 +08:00
Network Various fixes 2026-04-14 03:33:34 +02:00
PendingMessages Various fixes 2026-04-17 11:06:56 +02:00
SecretChats constTimeIsEqual 2026-02-13 18:13:26 +04:00
Settings Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
State Various improvements 2026-04-24 23:21:05 +04:00
Statistics Update API 2026-04-16 01:18:22 +02:00
SyncCore Various improvements 2026-04-24 03:16:14 +02:00
TelegramEngine Postbox -> TelegramEngine waves 94-102 (squashed) 2026-04-26 02:46:44 +04:00
Utils Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
Authorization.swift Update 2026-02-19 21:20:27 +01:00
ForumChannels.swift Postbox -> TelegramEngine wave 16a: move EngineMessageHistoryThread to TelegramCore 2026-04-20 21:26:32 +02:00
LoadedPeer.swift Refactor constructor use sites for types 460-479 to struct pattern 2026-01-18 23:36:22 +08:00
LoadedPeerFromMessage.swift Refactor constructor use sites for types 480-499 to struct pattern 2026-01-18 23:47:18 +08:00
SplitTest.swift
Suggestions.swift Temp 2025-12-02 19:30:48 +08:00
Themes.swift Refactor constructor use sites for types 380-399 to struct pattern 2026-01-18 22:58:30 +08:00
UpdatePeers.swift Refactor constructor use sites for types 340-359 to struct pattern 2026-01-18 22:21:57 +08:00
Wallpapers.swift Refactor constructor use sites for types 380-399 to struct pattern 2026-01-18 22:58:30 +08:00
WebpagePreview.swift Refactor constructor use sites for types 500-519 to struct pattern 2026-01-19 00:06:07 +08:00