Telegram-iOS/submodules/SettingsUI/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
..
BubbleSettings [WIP] Polls 2026-03-16 18:07:12 +01:00
Data and Storage Postbox -> TelegramEngine waves 94-102 (squashed) 2026-04-26 02:46:44 +04:00
Language Selection Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep 2026-04-19 23:46:13 +02:00
Notifications Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
Privacy and Security Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
Search Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
Stickers Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04:00
Terms of Service Various improvements 2026-04-24 03:16:14 +02:00
Text Size Unseen polls 2026-03-27 18:30:01 +08:00
Themes Postbox -> TelegramEngine waves 94-102 (squashed) 2026-04-26 02:46:44 +04:00
Watch Various improvements 2025-10-16 05:30:06 +04:00
ArchiveSettingsController.swift Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-01-30 19:45:23 +04:00
CachedFaqInstantPage.swift Various improvements 2026-01-25 22:17:49 +04:00
ChangePhoneNumberCodeController.swift Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep 2026-04-19 23:46:13 +02:00
ChangePhoneNumberController.swift Alerts 2025-12-22 23:28:04 +04:00
ChangePhoneNumberControllerNode.swift Stop using CTCarrier for country code detection due to it's deprecation 2024-02-19 19:17:51 -04:00
DeleteAccountDataController.swift Emoji in chat folders 2024-12-25 00:17:19 +08:00
DeleteAccountFooterItem.swift Various improvements 2026-02-23 23:15:45 +04:00
DeleteAccountOptionsController.swift Various improvements 2026-03-27 01:13:38 +01:00
DeleteAccountPeersItem.swift Postbox -> TelegramEngine waves 11-14: stateManager collapse + BUILD-dep sweep 2026-04-20 20:26:58 +02:00
DeleteAccountPhoneItem.swift Glass 2025-12-26 20:29:30 +08:00
LogoutOptionsController.swift Various improvements 2026-03-27 01:13:38 +01:00
NotificationsPeerCategoryController.swift Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04:00
ReactionNotificationSettingsController.swift Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04:00
SettingsController.swift Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep 2026-04-19 23:46:13 +02:00
ThemePickerController.swift Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
ThemePickerGridItem.swift Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
UsernameSetupController.swift Postbox -> TelegramEngine waves 27-36 2026-04-24 11:24:13 +04:00