Telegram-iOS/submodules/PeerInfoUI/Sources
isaac 86d1456552 Postbox -> TelegramEngine waves 107-137 (squashed)
31 waves of consumer-side migration from `import Postbox` to TelegramEngine
typealiases. Net: 173 import drops + 39 BUILD-dep drops + 1 new typealias
(`EngineStoryId = StoryId`, wave 113).

Wave shapes used:
- Orphan-import sweeps (107, 108, 128): drop `import Postbox` from files
  whose only Postbox-symbol reference was the import line itself, then
  resolve build failures. Methodology requires token-level (`grep -oE`)
  filtering, not line-level, to avoid masking real Postbox usage on lines
  that also contain `Namespaces.X` references.
- Identifier-swap mini-waves (109-127, 129-134, 136-137): rename
  Postbox-typealiased identifiers to engine equivalents
  (PeerId -> EnginePeer.Id, MessageId -> EngineMessage.Id,
  MediaId -> EngineMedia.Id, MessageIndex -> EngineMessage.Index,
  StoryId -> EngineStoryId, ItemCollectionId -> EngineItemCollectionId,
  PreferencesEntry -> EnginePreferencesEntry,
  FetchResourceSourceType/Error -> EngineFetchResourceSourceType/Error,
  MemoryBuffer -> EngineMemoryBuffer, MessageTags -> EngineMessage.Tags,
  MessageAttribute -> EngineMessage.Attribute,
  TempBox -> EngineTempBox).
- Asset-string FP-only orphans (124).
- Typealias addition + drain (113): added `EngineStoryId` typealias to
  TelegramCore, then drained 3+11 consumer sites.

Hard blockers identified during these waves (must restore `import Postbox`
when present): MediaResource[A-Za-z]* (any suffix -- the literal
`MediaResource` matches don't catch MediaResourceData/MediaResourceId/etc.),
Postbox/MediaBox/MediaResource raw types, PostboxCoding/PostboxEncoder/
PostboxDecoder, TempBoxFile, ValueBoxKey, PostboxView, combinedView,
HashFunctions, postboxLog, openPostbox, declareEncodable, PeerView,
MessageHistoryView, MessageHistoryThreadData, CachedPeerData, RenderedPeer,
SelectivePrivacyPeer, SimpleDictionary, ItemCollectionInfosView,
ItemCollectionItem, ItemCollectionItemIndex, ItemCollectionViewEntryIndex,
ChatListIndex, ChatListEntrySummaryComponents, CodableEntry,
MessageHistoryThread, MessageHistoryAnchorIndex,
MessageHistoryEntryLocation, PeerStoryStats, PeerNameIndex,
PeerSummaryCounterTags, ChatListTotalUnreadStateCategory/Stats,
arePeersEqual. Protocol-shape blockers: bare `Peer`/`Message`/`Media`
in function signatures, generic args, enum-case payloads, or dict value
types (e.g., `[PeerId: Peer]`, `case messages([Message])`,
`Signal<(Peer?, ...), NoError>`).

`replace_all PeerId -> EnginePeer.Id` is dangerous: mangles compound
names like `failedPeerId`, `ContactListPeerId`, `nextRemoteMediaId`,
`replyToMessageId`. Pre-flight grep `\b[a-z][a-zA-Z]*PeerId\b` and only
replace_all if 0 matches.

Also removes unneeded design/plan docs from a separate (link-highlighting)
feature branch:
- docs/superpowers/plans/2026-05-02-link-highlighting-modern-path-fixes.md
- docs/superpowers/specs/2026-05-02-link-highlighting-modern-path-fixes-design.md

Squashed commits: 6d82c2980d..e6de5d53a3 (59 commits, including
per-wave content commits and per-wave CLAUDE.md bumps).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 10:28:50 +02:00
..
ChannelAdminController.swift Postbox -> TelegramEngine waves 37-43 + wave 44 design/plan (squashed) 2026-04-24 23:19:43 +04:00
ChannelAdminsController.swift Postbox -> TelegramEngine wave 44 2026-04-24 23:21:05 +04:00
ChannelBannedMemberController.swift Postbox -> TelegramEngine waves 37-43 + wave 44 design/plan (squashed) 2026-04-24 23:19:43 +04:00
ChannelBlacklistController.swift Postbox -> TelegramEngine wave 44 2026-04-24 23:21:05 +04:00
ChannelDiscussionGroupActionSheetItem.swift Refactoring 2021-09-20 14:51:46 +03:00
ChannelDiscussionGroupSearchContainerNode.swift Refactor 2026-03-10 00:38:36 +01:00
ChannelDiscussionGroupSetupController.swift Various improvements 2025-10-16 05:30:06 +04:00
ChannelDiscussionGroupSetupHeaderItem.swift Glass 2025-12-26 20:29:30 +08:00
ChannelDiscussionGroupSetupSearchItem.swift [WIP] Polls 2026-03-17 16:32:49 +01:00
ChannelMembersController.swift Postbox -> TelegramEngine waves 37-43 + wave 44 design/plan (squashed) 2026-04-24 23:19:43 +04:00
ChannelMembersSearchContainerNode.swift Postbox -> TelegramEngine wave 44 2026-04-24 23:21:05 +04:00
ChannelMembersSearchController.swift Various improvements 2026-02-03 20:17:44 +08:00
ChannelMembersSearchControllerNode.swift Postbox -> TelegramEngine wave 44 2026-04-24 23:21:05 +04:00
ChannelParticipantFooterItem.swift Various improvements 2026-02-23 23:15:45 +04:00
ChannelPermissionsController.swift Postbox -> TelegramEngine waves 37-43 + wave 44 design/plan (squashed) 2026-04-24 23:19:43 +04:00
ChannelVisibilityController.swift Postbox -> TelegramEngine waves 46-93 (squashed) 2026-04-25 20:48:15 +04:00
ChatSlowmodeItem.swift Glass 2025-12-26 20:29:30 +08:00
ChatUnrestrictBoostersItem.swift Glass 2025-12-26 20:29:30 +08:00
ConvertToSupergroupController.swift Various improvements 2024-06-15 20:34:07 +04:00
DeviceContactInfoController.swift Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
GroupInfoSearchItem.swift Glass 2025-12-06 01:28:06 +08:00
GroupInfoSearchNavigationContentNode.swift Postbox -> TelegramEngine wave 6: unused import Postbox batch sweep 2026-04-19 23:46:13 +02:00
GroupPreHistorySetupController.swift Postbox -> TelegramEngine waves 107-137 (squashed) 2026-05-03 10:28:50 +02:00
ItemListCallListItem.swift Update API 2026-02-10 12:58:04 +04:00
ItemListReactionItem.swift Glass 2025-12-26 20:29:30 +08:00
ItemListSecretChatKeyItem.swift Glass 2025-12-26 20:29:30 +08:00
PeerAllowedReactionListController.swift Various improvements 2025-10-17 17:01:25 +04:00
PeerAutoremoveMessagesScreen.swift WIP 2021-02-02 18:48:26 +04:00
PeerAutoremoveSetupScreen.swift Refactoring 2023-04-18 11:50:24 +04:00
PeerAutoremoveTimeoutItem.swift Glass 2025-12-26 20:29:30 +08:00
PeerBanTimeoutController.swift Chat-specific theme improvements 2021-09-04 00:39:56 +03:00
PhoneLabelController.swift Various improvements 2025-10-16 05:30:06 +04:00
SecretChatKeyController.swift Refactoring [skip ci] 2023-04-20 18:43:29 +04:00
SecretChatKeyControllerNode.swift Refactoring [skip ci] 2023-04-20 18:43:29 +04:00
UserInfoController.swift Various improvements 2026-04-03 22:15:42 +08:00
UserInfoEditingPhoneActionItem.swift Glass 2025-12-26 20:29:30 +08:00
UserInfoEditingPhoneItem.swift Glass 2025-12-26 20:29:30 +08:00