WinterGram/submodules/TelegramCore/Sources/TelegramEngine
Isaac ad85ef6517 Postbox → TelegramEngine refactor: wave 1
Drop direct `import Postbox` from four leaf consumer submodules, routing
data access through TelegramEngine/TelegramCore. Behavior-preserving.

Consumers migrated:
- ChatInterfaceState
- ChatSendMessageActionUI
- ContactListUI
- DrawingUI

TelegramCore additions (typealiases + one EngineData item):
- EngineMemoryBuffer, EnginePostboxDecoder, EnginePostboxEncoder,
  EngineAdaptedPostboxDecoder (narrow utility aliases for coding support)
- EngineData.Item.Configuration.ContactsSettings

Six planned modules were abandoned in wave 1 with reasons recorded in
the plan: ActionSheetPeerItem, ChatListSearchRecentPeersNode,
DirectMediaImageCache, FetchManagerImpl, GalleryData, ICloudResources.
Each either has a public API that leaks `Postbox`/`Account`/`MediaBox`
(banned umbrella-type aliases) or cascades into out-of-wave modules.

CLAUDE.md now records the wave rules, typealias cheat sheet, and the
wave-selection guidance learned from this pass.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 23:16:45 +02:00
..
AccountData Refactor constructor use sites for types 440-459 to struct pattern 2026-01-18 23:29:12 +08:00
Auth Refactor constructor use sites for types 400-419 to struct pattern 2026-01-18 23:15:21 +08:00
Calls Update API 2026-02-05 17:27:47 +04:00
Contacts Various improvements 2026-03-31 20:24:24 +08:00
Data Postbox → TelegramEngine refactor: wave 1 2026-04-16 23:16:45 +02:00
HistoryImport Update API 2026-03-08 08:49:21 +01:00
ItemCache Various improvements 2025-03-10 15:32:15 +04:00
Localization Refactor constructor use sites for types 420-439 to struct pattern 2026-01-18 23:22:34 +08:00
Messages Merge commit '31e3a7dc79' 2026-04-16 17:52:38 +02:00
Notices Various improvements 2025-11-04 14:43:17 +04:00
OrderedLists
Payments Reapply "Update API" 2026-03-11 18:51:44 +01:00
Peers Update API 2026-04-16 01:18:22 +02:00
PeersNearby Refactor constructor use sites for types 340-359 to struct pattern 2026-01-18 22:21:57 +08:00
Preferences Temp 2026-03-23 21:33:34 +08:00
Privacy Refactor constructor use sites for types 420-439 to struct pattern 2026-01-18 23:22:34 +08:00
Resolve Refactor constructor use sites for types 420-439 to struct pattern 2026-01-18 23:22:34 +08:00
Resources Various improvements 2026-03-13 14:54:44 +01:00
SecureId Refactor constructor use sites for types 420-439 to struct pattern 2026-01-18 23:22:34 +08:00
Stickers Refactor constructor use sites for types 560-579 to struct pattern 2026-01-19 00:40:53 +08:00
Themes Refactor constructor use sites for types 380-399 to struct pattern 2026-01-18 22:58:30 +08:00
Utils Postbox → TelegramEngine refactor: wave 1 2026-04-16 23:16:45 +02:00
TelegramEngine.swift Various improvements 2025-03-10 15:32:15 +04:00