27 Commits
Author SHA1 Message Date
isaacandClaude Opus 4.7 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
Isaac 2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Isaac cd436e8210 Glass 2025-12-01 22:13:33 +08:00
Isaac 6c4070eb52 Serialization update 2025-02-14 19:11:58 +04:00
Isaac 22980d7c9a [Temp] 2025-01-14 11:52:31 +08:00
Isaac 05372b578c [WIP] Stars reactions 2024-07-30 23:44:19 +08:00
Isaac 9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Isaac 16faaa4575 [WIP] Send message effects 2024-05-03 22:56:50 +04:00
Isaac efae3b90a7 Support Xcode 15.3 2024-04-02 19:16:00 +04:00
Isaac 1ccad40a1b [WIP] Folder tags 2024-02-09 23:04:16 +04:00
Isaac bd4a534097 Various improvements 2024-02-02 14:32:13 +01:00
Isaac baecd27166 Update localization 2024-01-30 20:02:03 +01:00
Isaac 30e7056c21 Update localization 2024-01-30 19:18:04 +01:00
Isaac ad271bf102 Saved messages improvements 2024-01-30 12:09:47 +01:00
Isaac 4b91f1fc29 Update non-premium tags 2024-01-29 22:39:17 +01:00
Isaac d4f7440703 Saved message improvements 2024-01-29 21:23:19 +01:00
Isaac a0c2be94aa Fix scrolling 2024-01-29 12:45:50 +01:00
Isaac ca4eb2cb69 Saved message search 2024-01-28 00:15:21 +01:00
Isaac 960d968e0f Add lock icon 2024-01-26 21:56:53 +01:00
Isaac 53ba8afced Update tag layout 2024-01-26 20:50:40 +01:00
Isaac 953e1598f7 [WIP] Release changes 2024-01-26 15:33:01 +01:00
Isaac 0cab0ca678 [WIP] Saved messages 2024-01-23 17:52:21 +01:00
Isaac d1493c4abd [WIP] Tags 2024-01-19 22:23:10 +04:00
Isaac 5e4a9cff28 [WIP] Saved tags 2024-01-10 00:45:01 +04:00
Isaac 6a89f938db [WIP] Saved messages 2024-01-06 00:43:58 +04:00
Isaac fb517e49c9 [WIP] Privacy update 2024-01-05 10:55:59 +04:00
Isaac 0308118446 [WIP] Tags 2024-01-02 23:15:00 +04:00